mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(rmt): turn on memory block when enable the module
This commit is contained in:
parent
c6e8c7c02e
commit
610ef9c040
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user