fix(rmt): deal with spurious RX done interrupts on ESP32

Closes https://github.com/espressif/esp-idf/issues/15948
This commit is contained in:
Chen Jichang
2025-05-22 14:28:15 +08:00
parent ea5415b5f6
commit 5756300b2b
13 changed files with 27 additions and 14 deletions

View File

@@ -282,7 +282,7 @@ esp_err_t rmt_tx_stop(rmt_channel_t channel)
{
ESP_RETURN_ON_FALSE(RMT_IS_TX_CHANNEL(channel), ESP_ERR_INVALID_ARG, TAG, RMT_CHANNEL_ERROR_STR);
RMT_ENTER_CRITICAL();
#if SOC_RMT_SUPPORT_TX_ASYNC_STOP
#if SOC_RMT_SUPPORT_ASYNC_STOP
rmt_ll_tx_stop(rmt_contex.hal.regs, channel);
#else
// write ending marker to stop the TX channel