aboutsummaryrefslogtreecommitdiff
path: root/examples/t-idle-main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/t-idle-main.rs')
-rw-r--r--examples/t-idle-main.rs14
1 files changed, 9 insertions, 5 deletions
diff --git a/examples/t-idle-main.rs b/examples/t-idle-main.rs
index 94a33174..9078628e 100644
--- a/examples/t-idle-main.rs
+++ b/examples/t-idle-main.rs
@@ -7,13 +7,17 @@ use cortex_m_semihosting::debug;
use panic_semihosting as _;
#[rtic::app(device = lm3s6965)]
-const APP: () = {
+mod app {
#[init]
- fn init(_: init::Context) {}
+ fn init(_: init::Context) -> init::LateResources {
+ init::LateResources {}
+ }
#[idle]
- fn main(_: main::Context) -> ! {
+ fn taskmain(_: taskmain::Context) -> ! {
debug::exit(debug::EXIT_SUCCESS);
- loop {}
+ loop {
+ cortex_m::asm::nop();
+ }
}
-};
+}