| 532 | } |
| 533 | |
| 534 | static void uart_set_fifo(uart_port_t uart_port) |
| 535 | { |
| 536 | size_t uart_base; |
| 537 | uint8_t fcr; |
| 538 | |
| 539 | uart_base = SUNXI_UART0_BASE + uart_port * 0x400; |
| 540 | |
| 541 | fcr = UART_FCR_RXTRG_1_2 | UART_FCR_TXTRG_EMP | UART_FCR_FIFO_EN; |
| 542 | |
| 543 | hal_writeb(fcr, uart_base + UART_FCR); |
| 544 | } |
| 545 | |
| 546 | static void uart_forcechange(uart_port_t uart_port) |
| 547 | { |
no outgoing calls
no test coverage detected