From f763cb118dca475ed46048f234f51b2a2c934b7e Mon Sep 17 00:00:00 2001 From: Nicolas Caramelli Date: Thu, 22 Jun 2023 14:40:20 +0200 Subject: [PATCH] stm32f429i-disco: Register the BUTTON driver --- .../arm/stm32/stm32f429i-disco/src/stm32_bringup.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_bringup.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_bringup.c index 5208cd8e4a..0ff651dde5 100644 --- a/boards/arm/stm32/stm32f429i-disco/src/stm32_bringup.c +++ b/boards/arm/stm32/stm32f429i-disco/src/stm32_bringup.c @@ -66,6 +66,10 @@ #include "stm32.h" #include "stm32f429i-disco.h" +#ifdef CONFIG_INPUT_BUTTONS_LOWER +# include +#endif + #ifdef CONFIG_SENSORS_L3GD20 #include "stm32_l3gd20.h" #endif @@ -345,6 +349,16 @@ int stm32_bringup(void) } #endif +#ifdef CONFIG_INPUT_BUTTONS_LOWER + /* Register the BUTTON driver */ + + ret = btn_lower_initialize("/dev/buttons"); + if (ret < 0) + { + syslog(LOG_ERR, "ERROR: btn_lower_initialize() failed: %d\n", ret); + } +#endif /* CONFIG_INPUT_BUTTONS_LOWER */ + #ifdef CONFIG_INPUT_STMPE811 /* Initialize the touchscreen */