Skip to content

Commit 1c201b4

Browse files
authored
Merge pull request #8910 from c1728p9/nrf52_tx_fix
Fix rare NRF52 serial TX lockup
2 parents 415747d + 131eed9 commit 1c201b4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/serial_api.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,6 @@ static void nordic_nrf5_uart_callback_handler(uint32_t instance)
251251
*/
252252
static void nordic_nrf5_uart_event_handler_endtx(int instance)
253253
{
254-
/* Disable ENDTX event again. */
255-
nrf_uarte_int_disable(nordic_nrf5_uart_register[instance], NRF_UARTE_INT_ENDTX_MASK);
256-
257254
/* Release mutex. As the owner this call is safe. */
258255
nordic_nrf5_uart_state[instance].tx_in_progress = 0;
259256

@@ -277,9 +274,6 @@ static void nordic_nrf5_uart_event_handler_endtx(int instance)
277274
#if DEVICE_SERIAL_ASYNCH
278275
static void nordic_nrf5_uart_event_handler_endtx_asynch(int instance)
279276
{
280-
/* Disable ENDTX interrupt. */
281-
nrf_uarte_int_disable(nordic_nrf5_uart_register[instance], NRF_UARTE_INT_ENDTX_MASK);
282-
283277
/* Set Tx done and reset Tx mode to be not asynchronous. */
284278
nordic_nrf5_uart_state[instance].tx_in_progress = 0;
285279
nordic_nrf5_uart_state[instance].tx_asynch = false;

0 commit comments

Comments
 (0)