aboutsummaryrefslogtreecommitdiff
path: root/examples/extern_binds.rs
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2023-01-02 14:34:05 +0100
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2023-03-01 00:31:01 +0100
commit582c602912592ec7ebea3096aefa02aea99c2143 (patch)
tree96b14a130788960ee06d7e80adec43a167b4844b /examples/extern_binds.rs
parent7614b96fe45240dafe91ae549e712b560e2d4c10 (diff)
downloadrtic-582c602912592ec7ebea3096aefa02aea99c2143.tar.gz
rtic-582c602912592ec7ebea3096aefa02aea99c2143.tar.zst
rtic-582c602912592ec7ebea3096aefa02aea99c2143.zip
Old xtask test pass
Diffstat (limited to 'examples/extern_binds.rs')
-rw-r--r--examples/extern_binds.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/examples/extern_binds.rs b/examples/extern_binds.rs
index bfc85cfc..4dc6633c 100644
--- a/examples/extern_binds.rs
+++ b/examples/extern_binds.rs
@@ -2,7 +2,6 @@
#![deny(unsafe_code)]
#![deny(warnings)]
-#![deny(missing_docs)]
#![no_main]
#![no_std]
@@ -11,7 +10,7 @@ use panic_semihosting as _;
// Free function implementing the interrupt bound task `foo`.
fn foo(_: app::foo::Context) {
- hprintln!("foo called");
+ hprintln!("foo called").ok();
}
#[rtic::app(device = lm3s6965)]
@@ -30,22 +29,21 @@ mod app {
fn init(_: init::Context) -> (Shared, Local, init::Monotonics) {
rtic::pend(Interrupt::UART0);
- hprintln!("init");
+ hprintln!("init").unwrap();
(Shared {}, Local {}, init::Monotonics())
}
#[idle]
fn idle(_: idle::Context) -> ! {
- hprintln!("idle");
+ hprintln!("idle").unwrap();
rtic::pend(Interrupt::UART0);
+ debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
+
loop {
cortex_m::asm::nop();
- // Exit moved after nop to ensure that rtic::pend gets
- // to run before exiting
- debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
}
}