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

itm_rtic_hello.rs

Blame
  • Forked from Per Lindgren / e7020e_2021
    36 commits behind the upstream repository.
    itm_rtic_hello.rs 348 B
    #![no_main]
    #![no_std]
    
    use cortex_m::iprintln;
    use panic_halt as _;
    use stm32f4;
    
    #[rtic::app(device = stm32f4)]
    const APP: () = {
        #[init]
        fn init(cx: init::Context) {
            let mut p = cx.core;
            let stim = &mut p.ITM.stim[0];
            for a in 0..=10 {
                iprintln!(stim, "RTIC Hello, world!! {}", a);
            }
        }
    };