HeavyX/firmware/src/main.rs

19 lines
295 B
Rust
Raw Normal View History

2019-06-06 00:12:17 +08:00
#![no_std]
#![no_main]
extern crate riscv_rt;
extern crate panic_halt;
use riscv_rt::entry;
#[entry]
fn main() -> ! {
let foo = "hello world\n";
loop {
for c in foo.chars() {
let mem = 0x00400000 as *mut u8;
unsafe { *mem = c as u8 }
}
}
2019-06-06 00:12:17 +08:00
}