diff options
author | 2020-12-03 21:04:06 +0100 | |
---|---|---|
committer | 2020-12-03 21:04:06 +0100 | |
commit | ef50aeb2e8245b69843280fabb62589c0716ffdd (patch) | |
tree | a159de70654135eb87c52629c6026766eac3bff0 /examples/test_new_monotonic.rs | |
parent | 3b4c10e790e63ac328a7bdb98451ac11d5935731 (diff) | |
download | rtic-ef50aeb2e8245b69843280fabb62589c0716ffdd.tar.gz rtic-ef50aeb2e8245b69843280fabb62589c0716ffdd.tar.zst rtic-ef50aeb2e8245b69843280fabb62589c0716ffdd.zip |
Save, init generation fixed
Diffstat (limited to 'examples/test_new_monotonic.rs')
-rw-r--r-- | examples/test_new_monotonic.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/test_new_monotonic.rs b/examples/test_new_monotonic.rs new file mode 100644 index 00000000..5aac48ba --- /dev/null +++ b/examples/test_new_monotonic.rs @@ -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) { + } +} + |