int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg) { int ret = -EINVAL; if (id == BUTTON_USER) { ret = stm32l4_gpiosetevent(GPIO_BTN_USER, true, true, true, irqhandler, arg); } return ret; }
xcpt_t stm32l4_setup_overcurrent(xcpt_t handler) { return stm32l4_gpiosetevent(GPIO_OTGFS_OVER, true, true, true, handler); }