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

Function uart_forcechange

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

Source from the content-addressed store, hash-verified

544}
545
546static void uart_forcechange(uart_port_t uart_port)
547{
548 size_t uart_base;
549 uint32_t value;
550
551 uart_base = SUNXI_UART0_BASE + uart_port * 0x400;
552
553 value = hal_readb(uart_base + UART_HALT);
554 value |= UART_HALT_FORCECFG;
555 hal_writeb(value, uart_base + UART_HALT);
556}
557
558static void uart_set_isr(uart_port_t uart_port, uint8_t enable, uint32_t irq_type)
559{

Callers 1

_uart_configureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected