Searched refs:UartPort (Results 1 – 1 of 1) sorted by relevance
37 pub enum UartPort { enum48 impl UartPort { implementation179 port: UartPort,187 port: UartPort::COM1, in default()241 pub fn new(port: UartPort, baud_rate: u32, sys_info: Option<Arc<dyn IndexNode>>) -> Self { in new() argument266 pub fn new(port: UartPort, baud_rate: u32, sys_info: Option<Arc<dyn IndexNode>>) -> Self { in new() argument279 pub fn uart_init(uart_port: &UartPort, baud_rate: u32) -> Result<i32, &'static str> { in uart_init() argument343 fn uart_send(uart_port: &UartPort, s: &str) { in uart_send() argument358 fn uart_read_byte(uart_port: &UartPort) -> char { in uart_read_byte()366 UartPort::COM1.to_u16() in port()