From 53658e56d6251155180963bbfc76f2b92e699ba1 Mon Sep 17 00:00:00 2001 From: laokaiyao Date: Wed, 22 Feb 2023 19:18:37 +0800 Subject: [PATCH] pcnt_test: fix the error pin on h2 --- components/driver/.build-test-rules.yml | 4 ---- .../test_apps/legacy_pcnt_driver/main/test_legacy_pcnt.c | 2 +- .../driver/test_apps/legacy_pcnt_driver/pytest_legacy_pcnt.py | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/components/driver/.build-test-rules.yml b/components/driver/.build-test-rules.yml index 162245a54e..087232e8c2 100644 --- a/components/driver/.build-test-rules.yml +++ b/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: diff --git a/components/driver/test_apps/legacy_pcnt_driver/main/test_legacy_pcnt.c b/components/driver/test_apps/legacy_pcnt_driver/main/test_legacy_pcnt.c index 9348f715be..3e45685b8d 100644 --- a/components/driver/test_apps/legacy_pcnt_driver/main/test_legacy_pcnt.c +++ b/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 diff --git a/components/driver/test_apps/legacy_pcnt_driver/pytest_legacy_pcnt.py b/components/driver/test_apps/legacy_pcnt_driver/pytest_legacy_pcnt.py index a1d99e0bfe..c8a3555864 100644 --- a/components/driver/test_apps/legacy_pcnt_driver/pytest_legacy_pcnt.py +++ b/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',