Skip to content
Snippets Groups Projects
Select Git revision
  • 0998636d591dceda5c7d72b73304ed26896cc9c5
  • master default protected
2 results

hello.rs

Blame
  • hello.rs 306 B
    //! Prints "Hello, world" on the OpenOCD console
    #![deny(unsafe_code)]
    #![deny(warnings)]
    #![no_std]
    
    extern crate cortex_m_semihosting as semihosting;
    extern crate stm32f4xx_hal;
    
    use core::fmt::Write;
    
    use semihosting::hio;
    
    fn main() {
        writeln!(hio::hstdout().unwrap(), "Hello, world!").unwrap();
    }