| //use crate::chip_config::CONFIG; | |
| use kernel::common::StaticRef; | |
| use lowrisc::uart::{Uart, UartRegisters}; | |
| pub const UART0_BAUDRATE: u32 = crate::chip::CHIP_UART_BPS; | |
| pub static mut UART0: Uart = Uart::new(UART0_BASE, crate::chip::CHIP_PERIPH_FREQ); | |
| const UART0_BASE: StaticRef<UartRegisters> = | |
| unsafe { StaticRef::new(0x4000_0000 as *const UartRegisters) }; |