forked from espressif/esp-idf
fix(rmt): turn on memory block when enable the module
This commit is contained in:
@@ -139,6 +139,7 @@ static void rmt_module_enable(void)
|
||||
{
|
||||
RMT_ENTER_CRITICAL();
|
||||
if (rmt_contex.rmt_module_enabled == false) {
|
||||
rmt_ll_mem_power_by_pmu(rmt_contex.hal.regs);
|
||||
RMT_RCC_ATOMIC() {
|
||||
rmt_ll_enable_bus_clock(0, true);
|
||||
rmt_ll_reset_register(0);
|
||||
@@ -156,6 +157,7 @@ static void rmt_module_disable(void)
|
||||
RMT_RCC_ATOMIC() {
|
||||
rmt_ll_enable_bus_clock(0, false);
|
||||
}
|
||||
rmt_ll_mem_force_power_off(rmt_contex.hal.regs);
|
||||
rmt_contex.rmt_module_enabled = false;
|
||||
}
|
||||
RMT_EXIT_CRITICAL();
|
||||
|
@@ -64,10 +64,6 @@ components/driver/test_apps/legacy_pcnt_driver:
|
||||
components/driver/test_apps/legacy_rmt_driver:
|
||||
disable:
|
||||
- if: SOC_RMT_SUPPORTED != 1
|
||||
disable_test:
|
||||
- if: IDF_TARGET == "esp32c5"
|
||||
temporary: true
|
||||
reason: target test failed # TODO: [ESP32C5] IDF-10330
|
||||
depends_filepatterns:
|
||||
- components/driver/deprecated/**/*rmt*
|
||||
|
||||
|
@@ -8,7 +8,7 @@ from pytest_embedded import Dut
|
||||
@pytest.mark.esp32s2
|
||||
@pytest.mark.esp32s3
|
||||
@pytest.mark.esp32c3
|
||||
# @pytest.mark.esp32c5 # TODO: [ESP32C5] IDF-10330
|
||||
@pytest.mark.esp32c5
|
||||
@pytest.mark.esp32c6
|
||||
@pytest.mark.esp32h2
|
||||
@pytest.mark.esp32p4
|
||||
|
Reference in New Issue
Block a user