aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/examples/device.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cortex-m-rt/examples/device.rs')
-rw-r--r--cortex-m-rt/examples/device.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/cortex-m-rt/examples/device.rs b/cortex-m-rt/examples/device.rs
index 4395db2..950a564 100644
--- a/cortex-m-rt/examples/device.rs
+++ b/cortex-m-rt/examples/device.rs
@@ -5,13 +5,12 @@
#![no_main]
#![no_std]
-#[macro_use(entry)]
extern crate cortex_m_rt as rt;
extern crate panic_semihosting;
-// the program entry point
-entry!(main);
+use rt::entry;
+#[entry]
fn main() -> ! {
loop {}
}