diff options
author | 2020-10-01 19:38:49 +0200 | |
---|---|---|
committer | 2020-10-01 19:38:49 +0200 | |
commit | e7f0d9c3e3fad77dace2ce63af02559fda46cb73 (patch) | |
tree | 8a6be0817178f5877e546d5e8e29ae6b7589628d /examples/init.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/init.rs')
-rw-r--r-- | examples/init.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/init.rs b/examples/init.rs index 315969f0..d5cebbaa 100644 --- a/examples/init.rs +++ b/examples/init.rs @@ -11,7 +11,7 @@ use panic_semihosting as _; #[rtic::app(device = lm3s6965, peripherals = true)] const APP: () = { #[init] - fn init(cx: init::Context) { + fn init(cx: init::Context) -> init::LateResources { static mut X: u32 = 0; // Cortex-M peripherals @@ -26,5 +26,7 @@ const APP: () = { hprintln!("init").unwrap(); debug::exit(debug::EXIT_SUCCESS); + + init::LateResources {} } }; |