Home
last modified time | relevance | path

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

/DragonOS-0.1.2/kernel/src/driver/uart/
Duart.rs12 pub enum UartPort { enum
23 impl UartPort { implementation
76 port: UartPort,
82 Self {port: UartPort::COM1, baud_rate: 115200} in default()
92 pub fn uart_init(uart_port: &UartPort, baud_rate: u32) -> Result<i32, &'static str> { in uart_init() argument
156 fn uart_send(uart_port: &UartPort, str: &str) { in uart_send() argument
169 fn uart_read_byte(uart_port: &UartPort) -> char { in uart_read_byte()