diff --git a/boards/arm/stm32/stm32f429i-disco/src/stm32_bringup.c b/boards/arm/stm32/stm32f429i-disco/src/stm32_bringup.c index 5208cd8e4a9..0ff651dde59 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 */