blob: 63d9b72005639cae47817430f46b810c346e7bb5 [file] [log] [blame]
use crate::chip_config::CONFIG;
use kernel::common::StaticRef;
use lowrisc::uart::{Uart, UartRegisters};
pub const UART0_BAUDRATE: u32 = CONFIG.uart_baudrate;
pub static mut UART0: Uart = Uart::new(UART0_BASE, CONFIG.peripheral_freq);
const UART0_BASE: StaticRef<UartRegisters> =
unsafe { StaticRef::new(0x4000_0000 as *const UartRegisters) };