aboutsummaryrefslogtreecommitdiff
path: root/examples/binds.rs
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2019-04-21 20:10:40 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2019-05-01 20:49:25 +0200
commit1b4b006bab7ee05e403a4fc48ae751d037f95b1a (patch)
tree62d7e7ebf3f8fc6fff10cf92cb1623a025163006 /examples/binds.rs
parenta452700628e352e6ac01da9e16223a47752ca860 (diff)
downloadrtic-1b4b006bab7ee05e403a4fc48ae751d037f95b1a.tar.gz
rtic-1b4b006bab7ee05e403a4fc48ae751d037f95b1a.tar.zst
rtic-1b4b006bab7ee05e403a4fc48ae751d037f95b1a.zip
update examples
Diffstat (limited to '')
-rw-r--r--examples/binds.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/binds.rs b/examples/binds.rs
index a8b386fb..3d2d9b54 100644
--- a/examples/binds.rs
+++ b/examples/binds.rs
@@ -9,20 +9,19 @@ extern crate panic_semihosting;
use cortex_m_semihosting::{debug, hprintln};
use lm3s6965::Interrupt;
-use rtfm::app;
// `examples/interrupt.rs` rewritten to use `binds`
-#[app(device = lm3s6965)]
+#[rtfm::app(device = lm3s6965)]
const APP: () = {
#[init]
- fn init() {
+ fn init(_: init::Context) {
rtfm::pend(Interrupt::UART0);
hprintln!("init").unwrap();
}
#[idle]
- fn idle() -> ! {
+ fn idle(_: idle::Context) -> ! {
hprintln!("idle").unwrap();
rtfm::pend(Interrupt::UART0);
@@ -33,7 +32,7 @@ const APP: () = {
}
#[interrupt(binds = UART0)]
- fn foo() {
+ fn foo(_: foo::Context) {
static mut TIMES: u32 = 0;
*TIMES += 1;