From dde729a8e91cfd804a879caaf35f94e5e0dbff0a Mon Sep 17 00:00:00 2001 From: SnickerSun Date: Wed, 6 Dec 2023 17:55:16 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8DXTSGPIO=E6=B5=8B=E8=AF=95?= =?utf8?q?=E9=80=A0=E6=88=90=E6=8C=89=E9=94=AETP=E9=83=BD=E5=A4=B1?= =?utf8?q?=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../xts/acts/iothardware_lite/peripheral_hal/CMakeLists.txt | 1 + .../acts/iothardware_lite/peripheral_hal/src/iot_gpio_test.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/code/sdk/open_source/openharmony/test/xts/acts/iothardware_lite/peripheral_hal/CMakeLists.txt b/code/sdk/open_source/openharmony/test/xts/acts/iothardware_lite/peripheral_hal/CMakeLists.txt index dae49b0f2..30c70c831 100644 --- a/code/sdk/open_source/openharmony/test/xts/acts/iothardware_lite/peripheral_hal/CMakeLists.txt +++ b/code/sdk/open_source/openharmony/test/xts/acts/iothardware_lite/peripheral_hal/CMakeLists.txt @@ -29,6 +29,7 @@ set(PRIVATE_HEADER set(PRIVATE_DEFINES CONFIG_PWM_SUPPORT CONFIG_I2C_SUPPORT + XTS_SKIP_GPIO_DEINIT ) set(PUBLIC_DEFINES diff --git a/code/sdk/open_source/openharmony/test/xts/acts/iothardware_lite/peripheral_hal/src/iot_gpio_test.c b/code/sdk/open_source/openharmony/test/xts/acts/iothardware_lite/peripheral_hal/src/iot_gpio_test.c index ca71f4fa9..db639f6c9 100644 --- a/code/sdk/open_source/openharmony/test/xts/acts/iothardware_lite/peripheral_hal/src/iot_gpio_test.c +++ b/code/sdk/open_source/openharmony/test/xts/acts/iothardware_lite/peripheral_hal/src/iot_gpio_test.c @@ -16,9 +16,10 @@ #include "hctest.h" #include "iot_errno.h" #include "iot_gpio.h" +#include "platform_core.h" #define TEST_GPIO_SIZE 8 -const unsigned int COMPILABILITY_TEST_GPIO = 0xFFFFFFFF; +const unsigned int COMPILABILITY_TEST_GPIO = S_MGPIO10;//0xFFFFFFFF; S_MGPIO10 /** * @tc.desc : register a test suite, this suite is used to test basic flow and interface dependency @@ -173,7 +174,9 @@ LITE_TEST_CASE(IotGpioTestSuite, testIoTGpio010, Function | MediumTest | Level1) */ LITE_TEST_CASE(IotGpioTestSuite, testIoTGpio011, Function | MediumTest | Level1) { + #ifndef XTS_SKIP_GPIO_DEINIT IoTGpioDeinit(COMPILABILITY_TEST_GPIO); + #endif }; RUN_TEST_SUITE(IotGpioTestSuite); -- 2.17.1