-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: gpio_rpi_pico: Add gpio_get_config API
Implement the `gpio_get_config` and extend test coverage using the Pico 2 board with a suitable GPIO loopback. Signed-off-by: Andrew Featherstone <[email protected]>
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/drivers/gpio/gpio_basic_api/boards/rpi_pico2_rp2350a_m33.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_SKIP_PULL_TEST=y |
16 changes: 16 additions & 0 deletions
16
tests/drivers/gpio/gpio_basic_api/boards/rpi_pico2_rp2350a_m33.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Copyright (c) 2025 Andrew Featherstone <[email protected]> | ||
*/ | ||
|
||
/ { | ||
resources { | ||
compatible = "test-gpio-basic-api"; | ||
/* Choice of pins on the header is arbitrary, but doesn't | ||
* conflict with the external pulldown. | ||
*/ | ||
out-gpios = <&pico_header 16 0>; | ||
in-gpios = <&pico_header 17 0>; | ||
}; | ||
}; |