diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-10-05 18:26:00 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-05 18:26:00 +0000 |
| commit | 12aa9807c4883e1c8b3f226acea3a6aa5e886989 (patch) | |
| tree | 4febd53f9ba370a40e3ee0f3630a3542d1be4964 /examples/init.rs | |
| parent | f493f21359ccb3ab4643d9470f3581532f47593a (diff) | |
| parent | 8ab7be98714d1ef6298e6feb19f16b84cd9bb4e6 (diff) | |
Merge #372
372: Now late resources are always used r=AfoHT a=korken89
Awaits the PR in `rtic-syntax`: https://github.com/rtic-rs/rtic-syntax/pull/32
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
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 ea54333..6ac284a 100644 --- a/examples/init.rs +++ b/examples/init.rs @@ -11,7 +11,7 @@ use panic_semihosting as _; #[rtic::app(device = lm3s6965, peripherals = true)] mod app { #[init] - fn init(cx: init::Context) { + fn init(cx: init::Context) -> init::LateResources { static mut X: u32 = 0; // Cortex-M peripherals @@ -30,5 +30,7 @@ mod app { hprintln!("init").unwrap(); debug::exit(debug::EXIT_SUCCESS); + + init::LateResources {} } } |
