You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/02/05 15:28:06 UTC
[GitHub] kasjer opened a new pull request #1633: nrf52xx uart: Fix UART
close function
kasjer opened a new pull request #1633: nrf52xx uart: Fix UART close function
URL: https://github.com/apache/mynewt-core/pull/1633
Wait for UART TX FIFO drain was subject to race condition.
Function waited for nrf_uart->EVENTS_ENDTX while this register
was also read and cleared by interrupt handler.
In case interrupt code read register first hal_uart_close()
would end up in infinite loop.
Fixed code reads variable that is set when transfer is finished.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services