The following code is found in driverlib. What is the assert() ? Where can I read what it does and how it works.
void EUSCI_UART_clearInterruptFlag(uint32_t baseAddress, uint8_t mask)
{
assert(!(mask & ~(EUSCI_UART_RECEIVE_INTERRUPT_FLAG
| EUSCI_UART_TRANSMIT_INTERRUPT_FLAG
| EUSCI_UART_STARTBIT_INTERRUPT_FLAG
| EUSCI_UART_TRANSMIT_COMPLETE_INTERRUPT_FLAG)));
//Clear the UART interrupt source.
HWREG16(baseAddress + OFS_UCAxIFG) &= ~(mask);
}
Thanks ...