Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/driver/uart/
Duart.rs291 let divisor = UART_MAX_BITS_RATE / baud_rate; in uart_init() localVariable
293 io_out8(port + 0, (divisor & 0xff) as u8); // Set divisor (lo byte) in uart_init()
294 io_out8(port + 1, ((divisor >> 8) & 0xff) as u8); // (hi byte) in uart_init()
420 let divisor = UART_MAX_BITS_RATE / baud_rate; in c_uart_init() localVariable
422 io_out8(port + 0, (divisor & 0xff) as u8); // Set divisor (lo byte) in c_uart_init()
423 … io_out8(port + 1, ((divisor >> 8) & 0xff) as u8); // CompatibleTable(hi byte) in c_uart_init()