main: add UART_RATE

This commit is contained in:
Astro 2019-05-31 00:19:01 +02:00
parent 2f27ff574f
commit bf4f5108f4

View File

@ -73,8 +73,10 @@ fn l1_cache_init() {
asm::isb(); asm::isb();
} }
const UART_RATE: u32 = 115_200;
fn main() { fn main() {
let mut uart = Uart::serial(115_200); let mut uart = Uart::serial(UART_RATE);
loop { loop {
for i in 0.. { for i in 0.. {
writeln!(uart, "i={}\r", i); writeln!(uart, "i={}\r", i);