Skip to content

Commit 6f10068

Browse files
committed
core: update for gpio API change
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent 9a5e7d0 commit 6f10068

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cores/logicrom/WInterrupts.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ void attachInterrupt(uint32_t pin, voidFuncPtr callback, uint32_t mode)
4949
return;
5050
}
5151

52-
/* TODO: Check for fast IRQ */
53-
/* Use slow scanning mode for now */
54-
gpio_settrigger(g_ioHandles[pin], gpio_common_cb, 0, trigger);
52+
/*
53+
* TODO: Check for fast IRQ on 2G modules
54+
* Use slow scanning mode for now
55+
*/
56+
gpio_trigger_enable(g_ioHandles[pin], gpio_common_cb, 0, trigger);
5557
gpio_setuserdata(g_ioHandles[pin], callback);
5658
}
5759

0 commit comments

Comments
 (0)