aboutsummaryrefslogtreecommitdiff
path: root/examples/test_new_monotonic.rs
blob: 3323c09b3b2f3a46a9e4f1b3b7687a32859c96dd (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
//! examples/test_new_monotonic.rs

#![no_main]
#![no_std]

use panic_semihosting as _; // panic handler
use rtic::app;

#[app(device = lm3s6965, dispatchers = [UART])]
mod app {
    #[monotonic(binds = SomeISR1)]
    type MyMono1 = hal::Mono1;

    #[monotonic(binds = SomeISR2, default = true)]
    type MyMono2 = hal::Mono2;

    #[init]
    fn init(cx: init::Context) -> (init::LateResources, init::Monotonics) {}

    #[task]
    fn task1(_: task1::Context) {}

    #[task]
    fn task2(_: task2::Context) {}
}