STM32CubeF4 __HAL_UART_CLEAR_FLAG macro is incorrect
Posted on May 30, 2014 at 03:43The STM32CubeF4 __HAL_UART_CLEAR_FLAG( ) macro is incorrect because it does a read-modify-write. If a status bit becomes set in the USART_SR register by the hardware between the read and the write, that change will be ...