diff options
author | 2021-08-31 18:08:33 +0000 | |
---|---|---|
committer | 2021-08-31 18:08:33 +0000 | |
commit | f46b22f797a728b0de1a6b14141c12ae1f016f8f (patch) | |
tree | 35edbce452c808cafae49a535b2c15d4115ae5a0 /ui/unknown-interrupt.rs | |
parent | 3ef650832abef24f76c402ede64d1248cf0d0772 (diff) | |
parent | da1fd6166e893482f99f16714a1c718b445c9579 (diff) | |
download | rtic-f46b22f797a728b0de1a6b14141c12ae1f016f8f.tar.gz rtic-f46b22f797a728b0de1a6b14141c12ae1f016f8f.tar.zst rtic-f46b22f797a728b0de1a6b14141c12ae1f016f8f.zip |
Merge #522
522: validate unused dispatchers r=AfoHT a=japaric
closes #521
Co-authored-by: Jorge Aparicio <jorge@japaric.io>
Diffstat (limited to 'ui/unknown-interrupt.rs')
-rw-r--r-- | ui/unknown-interrupt.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ui/unknown-interrupt.rs b/ui/unknown-interrupt.rs new file mode 100644 index 00000000..f2bc6295 --- /dev/null +++ b/ui/unknown-interrupt.rs @@ -0,0 +1,15 @@ +#![no_main] + +#[rtic::app(device = lm3s6965, dispatchers = [UnknownInterrupt])] +mod app { + #[shared] + struct Shared {} + + #[local] + struct Local {} + + #[init] + fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) { + (Shared {}, Local {}, init::Monotonics()) + } +} |