Skip to content
Commit c338dd9b authored by Erwan Gouriou's avatar Erwan Gouriou Committed by Kumar Gala
Browse files

samples/drivers: gpio: LED0 and SW0 might not share GPIO controller



In gpio driver sample, same GPIO controller was used for out pin
(LED0) and in pin (SW0), which is actually a particular case.

This change implements the general case, where button an led might
not have the same gpio controller.
Tested on nucleo_f429zi and frdm_k64f.

Signed-off-by: default avatarErwan Gouriou <erwan.gouriou@linaro.org>
parent c52a6462
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment