Skip to content

Commit

Permalink
tests: drivers: gpio: gpio_more_loops: check pulls only at H20
Browse files Browse the repository at this point in the history
It was designed for H20, other platforms are not needed.
It is checked with gpio tests already.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
  • Loading branch information
nordic-piks committed Feb 27, 2025
1 parent 88a4f9d commit d9817dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions tests/drivers/gpio/gpio_more_loops/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ config TEST_DURATION
Test will run for (at least) defined time.
This value affects how many times GPIOs will be toggled.

config CHECK_PULLS
bool "When enabled, additional check of GPIO pull-up and pull-down is executed."
default y if BOARD_NRF54H20DK_NRF54H20_CPUAPP

source "Kconfig.zephyr"
3 changes: 1 addition & 2 deletions tests/drivers/gpio/gpio_more_loops/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ static void *suite_setup(void)

}

/* ToDo: Remove this #ifdef when nRF54L20 supports pull-up/pull-down. */
#if !defined(CONFIG_BOARD_NRF54L20PDK)
#if defined CONFIG_CHECK_PULLS
for (i = 0; i < npairs; i++) {
rc = gpio_pin_configure_dt(&in_pins[i], GPIO_INPUT | GPIO_PULL_UP);
zassert_equal(rc, 0, "IN[%d] config failed", i);
Expand Down

0 comments on commit d9817dc

Please sign in to comment.