From 1b4b006bab7ee05e403a4fc48ae751d037f95b1a Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sun, 21 Apr 2019 20:10:40 +0200 Subject: update examples --- examples/binds.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'examples/binds.rs') diff --git a/examples/binds.rs b/examples/binds.rs index a8b386f..3d2d9b5 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; -- cgit v1.2.3