2019-09-01 05:54 AM
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 */
}
2019-09-01 07:57 AM
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.