aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/examples/minimal.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cortex-m-rt/examples/minimal.rs')
-rw-r--r--cortex-m-rt/examples/minimal.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cortex-m-rt/examples/minimal.rs b/cortex-m-rt/examples/minimal.rs
index a036046..6f60180 100644
--- a/cortex-m-rt/examples/minimal.rs
+++ b/cortex-m-rt/examples/minimal.rs
@@ -5,13 +5,13 @@
#![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;
+// the program entry point
+#[entry]
fn main() -> ! {
loop {}
}