stm32f429i-disco: Register the BUTTON driver
This commit is contained in:
parent
d5981375a6
commit
f763cb118d
@ -66,6 +66,10 @@
|
|||||||
#include "stm32.h"
|
#include "stm32.h"
|
||||||
#include "stm32f429i-disco.h"
|
#include "stm32f429i-disco.h"
|
||||||
|
|
||||||
|
#ifdef CONFIG_INPUT_BUTTONS_LOWER
|
||||||
|
# include <nuttx/input/buttons.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SENSORS_L3GD20
|
#ifdef CONFIG_SENSORS_L3GD20
|
||||||
#include "stm32_l3gd20.h"
|
#include "stm32_l3gd20.h"
|
||||||
#endif
|
#endif
|
||||||
@ -345,6 +349,16 @@ int stm32_bringup(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#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
|
#ifdef CONFIG_INPUT_STMPE811
|
||||||
/* Initialize the touchscreen */
|
/* Initialize the touchscreen */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user