diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2024-12-08 14:22:05 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2024-12-08 14:22:05 -0700 |
commit | f89f75b5616de99865448f41b068a2783cd3648e (patch) | |
tree | 1e7599b8915d3fbb9a1a10892ba58fd44bea3f5d /src/btsel.c | |
parent | 546a5ccdba66dd8d8c19ce6d8486f46c84637cf2 (diff) | |
download | ch573-f89f75b5616de99865448f41b068a2783cd3648e.tar.gz ch573-f89f75b5616de99865448f41b068a2783cd3648e.tar.bz2 ch573-f89f75b5616de99865448f41b068a2783cd3648e.zip |
Cleaned up GPIO code quite a bit.
Diffstat (limited to 'src/btsel.c')
-rw-r--r-- | src/btsel.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/btsel.c b/src/btsel.c index 873b20a..c9c7e06 100644 --- a/src/btsel.c +++ b/src/btsel.c @@ -26,13 +26,3 @@ void enable_bootsel_button(void) GPIO_I.pb_interrupt_flag.set(GPIO, 1 << BOOTSEL_PIN); GPIO_I.pb_interrupt_enable.set(GPIO, 1 << BOOTSEL_PIN); } - -IRQ(gpio_b) -{ - bootsel_cb_t* cur = &BOOTSEL_LISTENERS_START; - while (cur != &BOOTSEL_LISTENERS_END) { - (*cur)(); - ++cur; - } - GPIO_I.pb_interrupt_flag.set(GPIO, 1 << BOOTSEL_PIN); -} |