Skip to content

Commit ea7a0fd

Browse files
committed
[NUC472/M453] Add comment in gpio_irq_init()
1 parent 46cb684 commit ea7a0fd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

targets/TARGET_NUVOTON/TARGET_M451/gpio_irq_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ int gpio_irq_init(gpio_irq_t *obj, PinName pin, gpio_irq_handler handler, uint32
8888
obj->irq_id = id;
8989

9090
GPIO_T *gpio_base = NU_PORT_BASE(port_index);
91+
// NOTE: In InterruptIn constructor, gpio_irq_init() is called with gpio_init_in() which is responsible for multi-function pin setting.
9192
//gpio_set(pin);
9293

9394
{

targets/TARGET_NUVOTON/TARGET_NUC472/gpio_irq_api.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ int gpio_irq_init(gpio_irq_t *obj, PinName pin, gpio_irq_handler handler, uint32
9494
obj->irq_id = id;
9595

9696
GPIO_T *gpio_base = NU_PORT_BASE(port_index);
97+
// NOTE: In InterruptIn constructor, gpio_irq_init() is called with gpio_init_in() which is responsible for multi-function pin setting.
9798
//gpio_set(pin);
9899

99100
{

0 commit comments

Comments
 (0)