AnsweredAssumed Answered

About how to clear Pending Register

Question asked by sagayama.toru on Apr 8, 2015
Latest reply on Apr 9, 2015 by sagayama.toru
Hello.
I'm struggling with clearing pending register. I'm trying to clear the register in EXTI0 handler, but it looks like my program doesn't work. I'm using HAL driver, HAL_GPIO_EXTI_CLEAR_FLAG like below coding;
HAL_GPIO_EXTI_CLEAR_FLAG(GPIO_PIN_0);
Is above usage correct ?
According to the description in stm32f4xx_hal_gpio.h, __EXTI__LINE__ in the macro,
HAL_GPIO_EXTI_CLEAR_FLAG means GPIO pin number like GPIO_PIN_0.

Regards

Outcomes