blob: 5ebe18c77d611e0606ac3270f796aa4f0cb74c63 [file] [log] [blame]
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) };