RTEMS | stm32h7-hal: Refactor clock and UART handling (!1156)
Mohamed Ayman (@mohamedayman23)
gitlab at rtems.org
Thu Mar 26 04:28:25 UTC 2026
Mohamed Ayman commented on a discussion on bsps/arm/stm32h7/start/stm32h7-hal.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1156#note_147146
> {
> 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 */
Apologies, that was a misconsideration on my part.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1156#note_147146
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260326/6c83cce7/attachment.htm>
More information about the bugs
mailing list