mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-18 10:37:34 +08:00
Update tap-v1 tap_pwr to uses NuttX IRQ API changes
This commit is contained in:
committed by
Daniel Agar
parent
8f24b1c6e0
commit
3bdbd53441
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user