diff options
author | 2021-04-07 11:06:57 +0200 | |
---|---|---|
committer | 2021-04-08 09:15:38 +0200 | |
commit | 2068eae9280881e34b5cc2d76b0b1a61402223e7 (patch) | |
tree | 21b4fa3bb6f5bac8f9430758a39140b40d6bcdfd /examples/type-usage.rs | |
parent | 6c8257bb73de0f68072467447692a1f7dff555f9 (diff) | |
download | rtic-2068eae9280881e34b5cc2d76b0b1a61402223e7.tar.gz rtic-2068eae9280881e34b5cc2d76b0b1a61402223e7.tar.zst rtic-2068eae9280881e34b5cc2d76b0b1a61402223e7.zip |
Type aliases now work in the app module
Diffstat (limited to 'examples/type-usage.rs')
-rw-r--r-- | examples/type-usage.rs | 15 |
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) {} +} |