void UART8_IRQHandler(void) { //Check if interrupt was because data is received if (USART_GetITStatus(UART8, USART_IT_RXNE)) { //Put received data into internal buffer TM_USART_InsertToBuffer(7, UART8->DR); } }
void UART8_IRQHandler(void) { //Check if interrupt was because data is received if (USART_GetITStatus(UART8, USART_IT_RXNE)) { #ifdef TM_UART8_USE_CUSTOM_IRQ //Call user function TM_UART8_ReceiveHandler(UART8->DR); #else //Put received data into internal buffer TM_USART_InsertToBuffer(7, UART8->DR); #endif } }