/** * @brief UART interrupt handler using ring buffers * @return Nothing */ void USART0_IRQHandler(void) { /* Want to handle any errors? Do it here. */ /* Use default ring buffer handler. Override this with your own code if you need more capability. */ Chip_UART0_IRQRBHandler(LPC_USART0, &rxring, &txring); }
void USART0_IRQHandler(void) { Chip_UART0_IRQRBHandler(LPC_USART0, &rxring, &txring); if (RingBuffer_IsEmpty(&txring)) { xSemaphoreGiveFromISR(sem_uart_ready, NULL); } if (!RingBuffer_IsEmpty(&rxring)) { xSemaphoreGiveFromISR(sem_uart_read_ready, NULL); } }