Skip to content

Commit a80b84d

Browse files
mathieuchopstmnashif
authored andcommitted
boards: st: nucleo_h7s3l8: fix user button configuration
There is no external pull-up/pull-down resistor on the pin so an internal one must be enabled. Since the button ties the pin low, enable a pull-up and change the button's polarity to Active-Low. Signed-off-by: Mathieu Choplain <mathieu.choplain-ext@st.com>
1 parent c34d78d commit a80b84d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

boards/st/nucleo_h7s3l8/nucleo_h7s3l8-common.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
user_button: button_0 {
4646
label = "User";
47-
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
47+
gpios = <&gpioc 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
4848
zephyr,code = <INPUT_KEY_0>;
4949
};
5050
};

0 commit comments

Comments
 (0)