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

Function UART_EnableInt

bsp/CME_M7/StdPeriph_Driver/src/cmem7_uart.c:104–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void UART_EnableInt(UART0_Type* UARTx, uint32_t Int, BOOL enable) {
105 assert_param(IS_UART_ALL_PERIPH(UARTx));
106 assert_param(IS_UART_INT(Int));
107
108 if (enable) {
109 UARTx->INT_MASK &= ~Int;
110 } else {
111 UARTx->INT_MASK |= Int;
112 }
113
114 UARTx->INT_MASK &= UART_Int_All;
115}
116
117void UART_Enable(UART0_Type* UARTx, BOOL enable) {
118 assert_param(IS_UART_ALL_PERIPH(UARTx));

Callers 1

CME_M7_controlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected