Merge pull request #15524 from ccli8/nuvoton_m467_gpio_set_debounce_time

M467: Fix invoking GPIO_SET_DEBOUNCE_TIME
master
Martin Kojtal 2024-10-08 19:43:45 +02:00 committed by GitHub
commit d84a97a0c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ int gpio_irq_init(gpio_irq_t *obj, PinName pin, gpio_irq_handler handler, uintpt
(void) gpio_irq_debounce_arr; (void) gpio_irq_debounce_arr;
// Configure de-bounce clock source and sampling cycle time // 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); GPIO_ENABLE_DEBOUNCE(gpio_base, 1 << pin_index);
#else #else
// Enable de-bounce if the pin is in the de-bounce enable list // Enable de-bounce if the pin is in the de-bounce enable list