diff options
author | 2020-10-01 19:38:49 +0200 | |
---|---|---|
committer | 2020-10-01 19:38:49 +0200 | |
commit | e7f0d9c3e3fad77dace2ce63af02559fda46cb73 (patch) | |
tree | 8a6be0817178f5877e546d5e8e29ae6b7589628d /examples/preempt.rs | |
parent | 4d61437bb4debea5adc578ee072bff3619d8077b (diff) | |
download | rtic-e7f0d9c3e3fad77dace2ce63af02559fda46cb73.tar.gz rtic-e7f0d9c3e3fad77dace2ce63af02559fda46cb73.tar.zst rtic-e7f0d9c3e3fad77dace2ce63af02559fda46cb73.zip |
Now late resources are always used
Diffstat (limited to 'examples/preempt.rs')
-rw-r--r-- | examples/preempt.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/preempt.rs b/examples/preempt.rs index 3cb11029..7103b17b 100644 --- a/examples/preempt.rs +++ b/examples/preempt.rs @@ -11,8 +11,10 @@ use rtic::app; #[app(device = lm3s6965)] const APP: () = { #[init] - fn init(_: init::Context) { + fn init(_: init::Context) -> init::LateResources { rtic::pend(Interrupt::GPIOA); + + init::LateResources {} } #[task(binds = GPIOA, priority = 1)] |