aboutsummaryrefslogtreecommitdiff
path: root/examples/type-usage.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/type-usage.rs')
-rw-r--r--examples/type-usage.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/type-usage.rs b/examples/type-usage.rs
new file mode 100644
index 00000000..a7a0d411
--- /dev/null
+++ b/examples/type-usage.rs
@@ -0,0 +1,15 @@
+//! examples/smallest.rs
+
+#![no_main]
+#![no_std]
+
+use panic_semihosting as _; // panic handler
+use rtic::app;
+
+#[app(device = lm3s6965, dispatchers = [SSI0])]
+mod app {
+ type Test = u32;
+
+ #[task]
+ fn t1(_: t1::Context, _val: Test) {}
+}