Skip to content

Commit

Permalink
Merge pull request #15524 from ccli8/nuvoton_m467_gpio_set_debounce_time
Browse files Browse the repository at this point in the history
M467: Fix invoking GPIO_SET_DEBOUNCE_TIME
  • Loading branch information
0xc0170 authored Oct 8, 2024
2 parents 036ee2c + a72075b commit d84a97a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion targets/TARGET_NUVOTON/TARGET_M460/gpio_irq_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d84a97a

Please sign in to comment.