From a72075b5ad6b011b819d612f84c7cef4dd31853d Mon Sep 17 00:00:00 2001 From: Chun-Chieh Li Date: Wed, 4 Sep 2024 16:42:19 +0800 Subject: [PATCH] M467: Fix invoking GPIO_SET_DEBOUNCE_TIME Fix missing gpio_base on invoking GPIO_SET_DEBOUNCE_TIME() --- targets/TARGET_NUVOTON/TARGET_M460/gpio_irq_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/TARGET_NUVOTON/TARGET_M460/gpio_irq_api.c b/targets/TARGET_NUVOTON/TARGET_M460/gpio_irq_api.c index 580cbd4858d..ac799bc1510 100644 --- a/targets/TARGET_NUVOTON/TARGET_M460/gpio_irq_api.c +++ b/targets/TARGET_NUVOTON/TARGET_M460/gpio_irq_api.c @@ -110,7 +110,7 @@ int gpio_irq_init(gpio_irq_t *obj, PinName pin, gpio_irq_handler handler, uintpt (void) gpio_irq_debounce_arr; // Configure de-bounce clock source and sampling cycle time - GPIO_SET_DEBOUNCE_TIME(MBED_CONF_TARGET_GPIO_IRQ_DEBOUNCE_CLOCK_SOURCE, MBED_CONF_TARGET_GPIO_IRQ_DEBOUNCE_SAMPLE_RATE); + GPIO_SET_DEBOUNCE_TIME(gpio_base, MBED_CONF_TARGET_GPIO_IRQ_DEBOUNCE_CLOCK_SOURCE, MBED_CONF_TARGET_GPIO_IRQ_DEBOUNCE_SAMPLE_RATE); GPIO_ENABLE_DEBOUNCE(gpio_base, 1 << pin_index); #else // Enable de-bounce if the pin is in the de-bounce enable list