aboutsummaryrefslogtreecommitdiff
path: root/examples/test_new_monotonic.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2020-12-08 20:49:13 +0100
committerGravatar Emil Fresk <emil.fresk@gmail.com> 2020-12-08 20:49:13 +0100
commitb23bb1192c8dc1f2e8f157db2147b1737abc1033 (patch)
treefa0f369feddc3bf838c74a3c5325c60735edc8ab /examples/test_new_monotonic.rs
parentef50aeb2e8245b69843280fabb62589c0716ffdd (diff)
downloadrtic-b23bb1192c8dc1f2e8f157db2147b1737abc1033.tar.gz
rtic-b23bb1192c8dc1f2e8f157db2147b1737abc1033.tar.zst
rtic-b23bb1192c8dc1f2e8f157db2147b1737abc1033.zip
TQ handlers being generated
Diffstat (limited to 'examples/test_new_monotonic.rs')
-rw-r--r--examples/test_new_monotonic.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/test_new_monotonic.rs b/examples/test_new_monotonic.rs
index 5aac48ba..b3890581 100644
--- a/examples/test_new_monotonic.rs
+++ b/examples/test_new_monotonic.rs
@@ -6,7 +6,7 @@
use panic_semihosting as _; // panic handler
use rtic::app;
-#[app(device = lm3s6965)]
+#[app(device = lm3s6965, dispatchers = [UART])]
mod app {
#[monotonic(binds = SomeISR1)]
type Mono1 = hal::Mono1;
@@ -17,5 +17,11 @@ mod app {
#[init]
fn init(cx: init::Context) -> (init::LateResources, init::Monotonics) {
}
+
+ #[task]
+ fn task1(_: task1::Context) {}
+
+ #[task]
+ fn task2(_: task2::Context) {}
}