Browse Source

pcnt_test: fix the error pin on h2

laokaiyao 3 years ago
parent
commit
53658e56d6

+ 0 - 4
components/driver/.build-test-rules.yml

@@ -58,10 +58,6 @@ components/driver/test_apps/legacy_mcpwm_driver:
 components/driver/test_apps/legacy_pcnt_driver:
   disable:
     - if: SOC_PCNT_SUPPORTED != 1
-  disable_test:
-    - if: IDF_TARGET in ["esp32h2"]
-      temporary: true
-      reason: cannot pass test IDF-6814
 
 components/driver/test_apps/legacy_rmt_driver:
   disable:

+ 1 - 1
components/driver/test_apps/legacy_pcnt_driver/main/test_legacy_pcnt.c

@@ -21,7 +21,7 @@
 #include "unity.h"
 #include "esp_rom_gpio.h"
 
-#define PULSE_IO 21
+#define PULSE_IO 12
 #define PCNT_INPUT_IO 4
 #define PCNT_CTRL_VCC_IO 5
 #define PCNT_CTRL_GND_IO 2

+ 1 - 1
components/driver/test_apps/legacy_pcnt_driver/pytest_legacy_pcnt.py

@@ -9,7 +9,7 @@ from pytest_embedded import Dut
 @pytest.mark.esp32s2
 @pytest.mark.esp32s3
 @pytest.mark.esp32c6
-# @pytest.mark.esp32h2  IDF-6814
+@pytest.mark.esp32h2
 @pytest.mark.generic
 @pytest.mark.parametrize(
     'config',