hello.rs 319 B

12345678910111213141516171819
  1. //! Prints "Hello, world" on the OpenOCD console
  2. #![deny(unsafe_code)]
  3. #![deny(warnings)]
  4. #![no_main]
  5. #![no_std]
  6. extern crate panic_semihosting;
  7. extern crate stm32f1xx_hal;
  8. use cortex_m_semihosting::hprintln;
  9. use cortex_m_rt::entry;
  10. #[entry]
  11. fn main() -> ! {
  12. hprintln!("Hello, world!").unwrap();
  13. loop {}
  14. }