diff options
Diffstat (limited to 'cortex-m-rt/examples/main.rs')
-rw-r--r-- | cortex-m-rt/examples/main.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cortex-m-rt/examples/main.rs b/cortex-m-rt/examples/main.rs new file mode 100644 index 0000000..58e3cb4 --- /dev/null +++ b/cortex-m-rt/examples/main.rs @@ -0,0 +1,13 @@ +//! Directly plug a `main` symbol instead of using `#[entry]` + +#![deny(warnings)] +#![no_main] +#![no_std] + +extern crate cortex_m_rt as rt; +extern crate panic_halt; + +#[no_mangle] +pub unsafe extern "C" fn main() -> ! { + loop {} +} |