rtic/examples/test_new_monotonic.rs
2020-12-08 20:49:13 +01:00

27 lines
502 B
Rust

//! 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 Mono1 = hal::Mono1;
#[monotonic(binds = SomeISR2)]
type Mono2 = hal::Mono2;
#[init]
fn init(cx: init::Context) -> (init::LateResources, init::Monotonics) {
}
#[task]
fn task1(_: task1::Context) {}
#[task]
fn task2(_: task2::Context) {}
}