| 102 | } |
| 103 | |
| 104 | void 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 | |
| 117 | void UART_Enable(UART0_Type* UARTx, BOOL enable) { |
| 118 | assert_param(IS_UART_ALL_PERIPH(UARTx)); |