Select Git revision
stacked_borrows.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 {}
}