Kinsey Moore started a new discussion on bsps/arm/stm32h7/start/stm32h7-hal.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1156#note_147095

 >  {
 >    stm32h7_uart_context *ctx;
 >    USART_TypeDef *regs;
 > +  uint32_t timeout = STM32H7_UART_TIMEOUT;
 >  
 >    ctx = stm32h7_uart_get_context(base);
 >    regs = ctx->uart.Instance;
 >  
 >    while ((regs->ISR & USART_ISR_TXE_TXFNF) == 0) {
 > -    /* Wait */
 > +    if (timeout-- == 0) {
 > +      return; /* Timeout reached, abort the write to prevent corruption */

Corruption? Please explain.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1156#note_147095
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to