| 65 | } |
| 66 | |
| 67 | void uart_tx_byte(unsigned int idx, unsigned char data) |
| 68 | { |
| 69 | struct sifive_uart_registers *regs = uart_platform_baseptr(idx); |
| 70 | |
| 71 | while (!uart_can_tx(regs)) |
| 72 | ; /* TODO: implement a timeout */ |
| 73 | |
| 74 | write32(®s->txdata, data); |
| 75 | } |
| 76 | |
| 77 | void uart_tx_flush(unsigned int idx) |
| 78 | { |
nothing calls this directly
no test coverage detected