Beispiel #1
0
/**
 * @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);
}
Beispiel #2
0
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);
	}
}