Update tap-v1 tap_pwr to uses NuttX IRQ API changes

This commit is contained in:
David Sidrane
2017-02-28 16:30:21 -10:00
committed by Daniel Agar
parent 8f24b1c6e0
commit 3bdbd53441
+2 -3
View File
@@ -70,7 +70,6 @@ static struct timespec time_down;
* Private Functions
************************************************************************************/
static int default_power_button_state_notification(board_power_button_state_notification_e request)
{
// syslog(0,"%d\n", request);
@@ -106,7 +105,7 @@ int board_shutdown()
return 0;
}
static int board_button_irq(int irq, FAR void *context)
static int board_button_irq(int irq, FAR void *context, FAR void *args)
{
if (board_pwr_button_down()) {
@@ -168,7 +167,7 @@ void board_pwr_init(int stage)
}
if (stage == 1) {
stm32_gpiosetevent(KEY_AD_GPIO, true, true, true, board_button_irq);
stm32_gpiosetevent(KEY_AD_GPIO, true, true, true, board_button_irq, NULL);
}
}