Home
last modified time | relevance | path

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

/DragonOS-0.1.3/kernel/src/driver/uart/
Duart.rs77 baud_rate: u32, field
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()
96 if baud_rate > UART_MAX_BITS_RATE || UART_MAX_BITS_RATE % baud_rate != 0 { in uart_init()
104 let divisor = UART_MAX_BITS_RATE / baud_rate; in uart_init()
215 pub extern "C" fn c_uart_init(port: u16, baud_rate: u32) -> i32 { in c_uart_init()
218 if baud_rate > UART_MAX_BITS_RATE || UART_MAX_BITS_RATE % baud_rate != 0 { in c_uart_init()
226 let divisor = UART_MAX_BITS_RATE / baud_rate; in c_uart_init()
Duart.h15 extern int c_uart_init(uint16_t port, uint32_t baud_rate);