Home
last modified time | relevance | path

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

/DragonOS/kernel/src/driver/serial/
H A Dmod.rs25 pub const SERIAL_BAUDRATE: BaudRate = BaudRate::new(115200);
40 fn divisor(&self, baud: BaudRate) -> (u32, DivisorFraction); in divisor()
41 fn set_divisor(&self, baud: BaudRate) -> Result<(), SystemError>; in set_divisor()
42 fn baud_rate(&self) -> Option<BaudRate>; in baud_rate() argument
48 int_like!(BaudRate, AtomicBaudRate, u32, AtomicU32);
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dserial8250_pio.rs20 serial::{AtomicBaudRate, BaudRate, DivisorFraction, UartPort},
111 const SERIAL8250PIO_MAX_BAUD_RATE: BaudRate = BaudRate::new(115200);
112 pub fn new(iobase: Serial8250PortBase, baudrate: BaudRate) -> Result<Self, SystemError> { in new()
169 const fn check_baudrate(&self, baudrate: &BaudRate) -> Result<(), SystemError> { in check_baudrate()
233 fn divisor(&self, baud: BaudRate) -> (u32, DivisorFraction) { in divisor()
238 fn set_divisor(&self, baud: BaudRate) -> Result<(), SystemError> { in set_divisor()
265 fn baud_rate(&self) -> Option<BaudRate> { in baud_rate() argument