main.rs 563 B

1234567891011121314151617181920
  1. #![no_std]
  2. #![no_main]
  3. // pick a panicking behavior
  4. use panic_halt as _; // you can put a breakpoint on `rust_begin_unwind` to catch panics
  5. // use panic_abort as _; // requires nightly
  6. // use panic_itm as _; // logs messages over ITM; requires ITM support
  7. // use panic_semihosting as _; // logs messages to the host stderr; requires a debugger
  8. use cortex_m::asm;
  9. use cortex_m_rt::entry;
  10. #[entry]
  11. fn main() -> ! {
  12. asm::nop(); // To not have main optimize to abort in release mode, remove when you add code
  13. loop {
  14. // your code goes here
  15. }
  16. }