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

rtic_hello.rs

Blame
  • rtic_hello.rs 310 B
    #![no_main]
    #![no_std]
    
    use cortex_m_semihosting::hprintln;
    use panic_halt as _;
    use stm32f4;
    
    #[rtic::app(device = stm32f4)]
    const APP: () = {
        #[init]
        fn init(_cx: init::Context) {
            for a in 0..11 {
                hprintln!("RTIC Says Hello, to all students!! {}", a).unwrap();
            }
        }
    };