| use kernel::common::StaticRef; | |
| use opentitan::uart::{Uart, UartRegisters}; | |
| use matcha_config::*; | |
| 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(UART0_BASE_ADDRESS as *const UartRegisters) }; |