zephyr/tests/drivers/gpio/gpio_basic_api
Peter Bigot bf04c61f6e tests: gpio_basic_api: disconnect output in initial setup
One driver (mchp_xec) appears to have problems with setting the output
value before setting the direction, which can be caught if the order
of checks in the port setup function are reversed.  Reconfigure the
output to a non-output state before the second test to see if that
catches the problem.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
2020-08-19 19:18:43 -04:00
..
boards MXRT600: Add support to run Basic GPIO test 2020-08-19 13:06:30 -05:00
dts/bindings
src tests: gpio_basic_api: disconnect output in initial setup 2020-08-19 19:18:43 -04:00
CMakeLists.txt tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
README.txt
prj.conf
testcase.yaml tests: gpio_basic: this test requires a fixture 2020-05-24 20:25:51 +02:00

README.txt

GPIO 2-Pin Test
###############

This application tests the GPIO subsystem using a hardware configuration
where two GPIOs are directly wired together.  The test pins are
identified through a test-specific devicetree binding in the `dts/`
subdirectory, implemented for specific boards by overlay files in the
`boards/` directory.

For some boards `src/main.c` may also need to be extended to configure
the selected pins for use as GPIOs.

Only boards for which an overlay is present can pass this test.  Boards
without an overlay, or for which the required wiring is not provided,
will fail with an error like this:

    Validate device GPIO_0
    Check GPIO_0 output 2 connected to input 3
    FATAL output pin not wired to input pin? (out high => in low)

No special build options are required to make use of the overlay.