Struct Uart
kernel::uart
pub struct Uart { base_address: usize, }
UART driver
base_address: usize
UART MMIO base address
impl Uart
pub const fn new(base_address: usize) -> Self
pub fn init(&mut self)
Initialize UART driver
pub fn put(&mut self, c: u8)
Put a character into UART
pub fn get(&mut self) -> Option<u8>
Get a character from UART