Skip to content
Snippets Groups Projects
Select Git revision
  • 2415a640af49666799bb4cd09a40f16853bdd687
  • master default protected
  • exam
  • exper
  • klee
  • simple
  • v0.3.2
  • v0.3.1
  • v0.3.0
  • v0.2.2
  • v0.2.1
  • v0.2.0
  • v0.1.1
  • v0.1.0
14 results

trans.rs

  • bare3.1.rs 333 B
    //! bare3.rs
    //! Simple bare metal application
    #![no_std]
    
    extern crate cortex_m;
    extern crate stm32f40x;
    
    #[macro_use]
    extern crate cortex_m_debug;
    
    fn main() {
        let s = "ABCD";
        ipln!("s = {:?}", s);
    
        // iterate over the byte repr. of s
        for c in s.as_bytes() {
            ip!("{},", c)
        }
    
        ipln!();
        loop {}
    }