Skip to content

Commit 168fc5d

Browse files
giulcioffifacchinm
authored andcommitted
RP2040: Rename pico-sdk's gpio_irq_handler with a '_' to avoid clashes with mbed API
1 parent 91a1013 commit 168fc5d

File tree

1 file changed

+2
-2
lines changed
  • targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/rp2_common/hardware_gpio

1 file changed

+2
-2
lines changed

targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/rp2_common/hardware_gpio/gpio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void gpio_set_oeover(uint gpio, uint value) {
8080
);
8181
}
8282

83-
static void gpio_irq_handler(void) {
83+
static void _gpio_irq_handler(void) {
8484
io_irq_ctrl_hw_t *irq_ctrl_base = get_core_num() ?
8585
&iobank0_hw->proc1_irq_ctrl : &iobank0_hw->proc0_irq_ctrl;
8686
for (uint gpio = 0; gpio < NUM_BANK0_GPIOS; gpio++) {
@@ -124,7 +124,7 @@ void gpio_set_irq_enabled_with_callback(uint gpio, uint32_t events, bool enabled
124124
// TODO: Do we want to support a callback per GPIO pin?
125125
// Install IRQ handler
126126
_callbacks[get_core_num()] = callback;
127-
irq_set_exclusive_handler(IO_IRQ_BANK0, gpio_irq_handler);
127+
irq_set_exclusive_handler(IO_IRQ_BANK0, _gpio_irq_handler);
128128
irq_set_enabled(IO_IRQ_BANK0, true);
129129
}
130130

0 commit comments

Comments
 (0)