aboutsummaryrefslogtreecommitdiff
path: root/examples/test_new_monotonic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/test_new_monotonic.rs')
-rw-r--r--examples/test_new_monotonic.rs25
1 files changed, 25 insertions, 0 deletions
diff --git a/examples/test_new_monotonic.rs b/examples/test_new_monotonic.rs
new file mode 100644
index 00000000..67883465
--- /dev/null
+++ b/examples/test_new_monotonic.rs
@@ -0,0 +1,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 = SysTick)]
+ 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) {}
+}