boards: Fix buttons GPIO IRQ on ESP boards

This commit is contained in:
Lucas Saavedra Vaz
2022-11-28 11:21:59 -03:00
committed by Alan Carvalho de Assis
parent cd5e536c40
commit a926445995
10 changed files with 44 additions and 24 deletions
@@ -130,7 +130,7 @@ uint32_t board_buttons(void)
int board_button_irq(int id, xcpt_t irqhandler, void *arg)
{
int ret;
DEBUGASSERT(id == BUTTON_BOOT);
DEBUGASSERT(id == 0);
int irq = ESP32_PIN2IRQ(BUTTON_BOOT);