cancel
Showing results for 
Search instead for 
Did you mean: 

USART1_IRQHandler vs HAL_UART_IRQHandler

SMeta
Associate

What is the difference between USART1_IRQHandler and HAL_UART_IRQHandler

void USART1_IRQHandler(void)

{

/* USER CODE BEGIN USART1_IRQn 0 */

/* USER CODE END USART1_IRQn 0 */

HAL_UART_IRQHandler(&huart1); -----> does interrupt flag gets clear after this function

/* USER CODE BEGIN USART1_IRQn 1 */

/* USER CODE END USART1_IRQn 1 */

}

1 REPLY 1

USART1_IRQHandler() is called by the Processor/NVIC

You call back into the HAL via HAL_UART_IRQHandler() with the structure/instance the software is managing, and then the HAL identifies/clears the pending flags and calls your callbacks.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..