stm32f429i-disco: Register the BUTTON driver

This commit is contained in:
Nicolas Caramelli 2023-06-22 14:40:20 +02:00 committed by Alan Carvalho de Assis
parent d5981375a6
commit f763cb118d

View file

@ -66,6 +66,10 @@
#include "stm32.h"
#include "stm32f429i-disco.h"
#ifdef CONFIG_INPUT_BUTTONS_LOWER
# include <nuttx/input/buttons.h>
#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 */