aboutsummaryrefslogtreecommitdiff
path: root/examples/t-htask-main.rs
blob: 39404322a3a78637b7bdaefdd5a46b70b2eaf0cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#![deny(unsafe_code)]
#![deny(warnings)]
#![no_main]
#![no_std]

use panic_semihosting as _;

#[rtic::app(device = lm3s6965)]
mod app {
    use cortex_m_semihosting::debug;

    #[shared]
    struct Shared {}

    #[local]
    struct Local {}

    #[init]
    fn init(_: init::Context) -> (Shared, Local, init::Monotonics) {
        rtic::pend(lm3s6965::Interrupt::UART0);

        (Shared {}, Local {}, init::Monotonics())
    }

    #[task(binds = UART0)]
    fn taskmain(_: taskmain::Context) {
        debug::exit(debug::EXIT_SUCCESS);
    }
}
Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/integration/snippets/latin1-chars-in-regexp.js (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2021-12-16Update README.mdGravatar Jarred Sumner 1-3/+2
2021-12-16ICU should be in depsGravatar Jarred Sumner 1-1/+1
2021-12-16Update build-idGravatar Jarred Sumner 1-1/+1