STM3210E-EVAL: Eliminte a warning. Return type of board_button_irq is now type int.
This commit is contained in:
parent
464a3cf27c
commit
51d3e36ad6
@ -177,22 +177,22 @@ static int button_handler(int irq, FAR void *context, FAR void *arg)
|
|||||||
|
|
||||||
void stm32_pmbuttons(void)
|
void stm32_pmbuttons(void)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_ARCH_IRQBUTTONS
|
||||||
|
int ret;
|
||||||
|
int i;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Initialize the button GPIOs */
|
/* Initialize the button GPIOs */
|
||||||
|
|
||||||
board_button_initialize();
|
board_button_initialize();
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_IRQBUTTONS
|
#ifdef CONFIG_ARCH_IRQBUTTONS
|
||||||
int i;
|
|
||||||
for (i = CONFIG_PM_IRQBUTTONS_MIN; i <= CONFIG_PM_IRQBUTTONS_MAX; i++)
|
for (i = CONFIG_PM_IRQBUTTONS_MIN; i <= CONFIG_PM_IRQBUTTONS_MAX; i++)
|
||||||
{
|
{
|
||||||
xcpt_t oldhandler =
|
ret = board_button_irq(i, button_handler, (void*)i);
|
||||||
board_button_irq(i, button_handler, (void*) i);
|
if (ret < 0)
|
||||||
|
|
||||||
if (oldhandler != NULL)
|
|
||||||
{
|
{
|
||||||
swarn("WARNING: oldhandler:%p is not NULL! "
|
serr("ERROR: board_button_irq failed: %d\n", ret);
|
||||||
"Button events may be lost or aliased!\n",
|
|
||||||
oldhandler);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user