| 75 | } |
| 76 | |
| 77 | void uart_tx_flush(unsigned int idx) |
| 78 | { |
| 79 | struct sifive_uart_registers *regs = uart_platform_baseptr(idx); |
| 80 | uint32_t ip; |
| 81 | |
| 82 | /* Use the TX watermark bit to find out if the TX FIFO is empty */ |
| 83 | do { |
| 84 | ip = read32(®s->ip); |
| 85 | } while (!(ip & IP_TXWM)); |
| 86 | } |
| 87 | |
| 88 | unsigned char uart_rx_byte(unsigned int idx) |
| 89 | { |
nothing calls this directly
no test coverage detected