forked from M-Labs/zynq-rs
main: add UART_RATE
This commit is contained in:
parent
2f27ff574f
commit
bf4f5108f4
|
@ -73,8 +73,10 @@ fn l1_cache_init() {
|
|||
asm::isb();
|
||||
}
|
||||
|
||||
const UART_RATE: u32 = 115_200;
|
||||
|
||||
fn main() {
|
||||
let mut uart = Uart::serial(115_200);
|
||||
let mut uart = Uart::serial(UART_RATE);
|
||||
loop {
|
||||
for i in 0.. {
|
||||
writeln!(uart, "i={}\r", i);
|
||||
|
|
Loading…
Reference in New Issue