Showing changes from revision #2 to #3:
Added | Removed | Changed
void HAL_UARTFIFOSize(int port, int *rx, int *tx)
Entry | |
---|---|
port | Port number to query |
rx | Location to store RX FIFO size |
tx | Location to store TX FIFO size |
Exit | |
---|---|
- |
This is an internal call for use by the DualSerial module and should not be used by user code. Instead of calling the HAL directly, user code should interact with the Serial* entries that DualSerial creates in DeviceFS.
Returns the size of the RX and TX FIFOs. Either parameter may be NULL. Note that the size of the TX FIFO is the total amount of data that can be sent immediately when the Transmitter Holding Register Empty Empty/ status holds. (So an unusualFIFO under threshold IRQ holds status holds. (So an unusual UART that had a transmit threshold should return total FIFO size minus threshold).