コード例 #1
0
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);
	}
}
コード例 #2
0
ファイル: tm_stm32f4_usart.c プロジェクト: Acse/stm32f429
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
	}
}