Home
last modified time | relevance | path

Searched refs:UartDriver (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.8/kernel/src/driver/uart/
Duart.rs178 pub struct UartDriver { struct
184 impl Default for UartDriver { argument
196 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 { impl
310 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 …]