My application receive data in usart1 through interrupt. I generated the files in STM32CubeMX for MDK-ARM. This error appears in the compilation: ../Src/stm32f1xx_it.c(193): Error: # 20: identifier "USART_IT_RXNE" is undefined. How do I solve this? Ronaldo Martins
code:
Void USART1_IRQHandler (void) { If (USART_GetITStatus (USART1, USART_IT_RXNE)! = RESET) // enter interrupt when STM32 receice data. {
USART_Temp_Data = USART_ReceiveData (USART1); } }