mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-17 21:35:20 +01:00
Save, init generation fixed
This commit is contained in:
parent
3b4c10e790
commit
ef50aeb2e8
13 changed files with 229 additions and 242 deletions
21
examples/test_new_monotonic.rs
Normal file
21
examples/test_new_monotonic.rs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
//! examples/test_new_monotonic.rs
|
||||
|
||||
#![no_main]
|
||||
#![no_std]
|
||||
|
||||
use panic_semihosting as _; // panic handler
|
||||
use rtic::app;
|
||||
|
||||
#[app(device = lm3s6965)]
|
||||
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) {
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue