Searched refs:UartDriver (Results 1 – 1 of 1) sorted by relevance
178 pub struct UartDriver { struct184 impl Default for UartDriver { argument196 pub struct LockedUartDriver(SpinLock<UartDriver>);200 Self(SpinLock::new(UartDriver::default())) in default()242 Self(SpinLock::new(UartDriver::new(port, baud_rate, sys_info))) in new()259 impl UartDriver { impl310 UartDriver::uart_send(uart_port, message); in uart_init()345 while UartDriver::is_transmit_empty(port) == false { in uart_send()360 while UartDriver::serial_received(port) == false {} //TODO:pause in uart_read_byte()375 while UartDriver::is_transmit_empty(port) == false {} //TODO:pause in c_uart_send()[all …]