uart_16550
uart_16550 copied to clipboard
Minimal support for uart_16550 serial output.
`.receive()` polls for new input internally. A `.try_receive()` method would allow the OS to handle the polling itself and do other useful work between two polls rather than hang until...
fixes #30 This adds `try_create` and `loopback_test` to `SerialPort`. > I was thinking it might be nice if this crate, rather than marking SerialPort::new as unsafe, instead rolled init into...
I'll preface this by saying that it's very possible that I've totally misunderstood how this all works. As I understand it from reading https://wiki.osdev.org/Serial_Ports#Port_Addresses, it's possible that not even `COM1`...
please... since I cannot implement Write on your types
For MMIO the serial port is defined as: ```rust pub struct MmioSerialPort { data: AtomicPtr, int_en: AtomicPtr, fifo_ctrl: AtomicPtr, line_ctrl: AtomicPtr, modem_ctrl: AtomicPtr, line_sts: AtomicPtr, } ``` with ```rust Self...
Closes #38 Contain breaking changes Advantages: - Reduces the amount of code - Lets people using this library use a uart with `dyn Uart16550` - It will be very easy...
I want to set the baud rate to 115200, but that is not possible rn cuz the `init` fn assumes a different baud rate. #25 will accomplish this but it...
I will make a PR for this.