aboutsummaryrefslogtreecommitdiff
path: root/macros/ui/task-bind.rs
diff options
context:
space:
mode:
Diffstat (limited to 'macros/ui/task-bind.rs')
-rw-r--r--macros/ui/task-bind.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/macros/ui/task-bind.rs b/macros/ui/task-bind.rs
new file mode 100644
index 00000000..de605243
--- /dev/null
+++ b/macros/ui/task-bind.rs
@@ -0,0 +1,7 @@
+#![no_main]
+
+#[rtic_macros::mock_app(device = mock)]
+mod app {
+ #[task(binds = UART0)]
+ fn foo(_: foo::Context) {}
+}