Skip to content

Commit d84a97a

Browse files
authored
Merge pull request #15524 from ccli8/nuvoton_m467_gpio_set_debounce_time
M467: Fix invoking GPIO_SET_DEBOUNCE_TIME
2 parents 036ee2c + a72075b commit d84a97a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_NUVOTON/TARGET_M460/gpio_irq_api.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ int gpio_irq_init(gpio_irq_t *obj, PinName pin, gpio_irq_handler handler, uintpt
110110
(void) gpio_irq_debounce_arr;
111111

112112
// Configure de-bounce clock source and sampling cycle time
113-
GPIO_SET_DEBOUNCE_TIME(MBED_CONF_TARGET_GPIO_IRQ_DEBOUNCE_CLOCK_SOURCE, MBED_CONF_TARGET_GPIO_IRQ_DEBOUNCE_SAMPLE_RATE);
113+
GPIO_SET_DEBOUNCE_TIME(gpio_base, MBED_CONF_TARGET_GPIO_IRQ_DEBOUNCE_CLOCK_SOURCE, MBED_CONF_TARGET_GPIO_IRQ_DEBOUNCE_SAMPLE_RATE);
114114
GPIO_ENABLE_DEBOUNCE(gpio_base, 1 << pin_index);
115115
#else
116116
// Enable de-bounce if the pin is in the de-bounce enable list

0 commit comments

Comments
 (0)