Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/driver/uart/
Duart.rs37 pub enum UartPort { enum
48 impl UartPort { implementation
179 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() argument
266 pub fn new(port: UartPort, baud_rate: u32, sys_info: Option<Arc<dyn IndexNode>>) -> Self { in new() argument
279 pub fn uart_init(uart_port: &UartPort, baud_rate: u32) -> Result<i32, &'static str> { in uart_init() argument
343 fn uart_send(uart_port: &UartPort, s: &str) { in uart_send() argument
358 fn uart_read_byte(uart_port: &UartPort) -> char { in uart_read_byte()
366 UartPort::COM1.to_u16() in port()