From bf4f5108f4151a0e83ce622eb9c744c0455223bb Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 31 May 2019 00:19:01 +0200 Subject: [PATCH] main: add UART_RATE --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 6f75915..9a46a96 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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);