MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / uart_set_fifo

Function uart_set_fifo

bsp/allwinner/libraries/drivers/drv_uart.c:534–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534static 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
546static void uart_forcechange(uart_port_t uart_port)
547{

Callers 2

_uart_configureFunction · 0.70
uart_irq_handlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected