[riot-notifications] [RIOT] stm32f0-gpio-update (#3881)
Hauke Petersen
notifications at github.com
Thu Sep 17 14:13:41 CEST 2015
> - case GPIO_10:
> - GPIO_10_EXTI_CFG();
> - break;
> -#endif
> -#ifdef GPIO_11_EN
> - case GPIO_11:
> - GPIO_11_EXTI_CFG();
> - break;
> -#endif
> +
> + /* initialize pin as input */
> + gpio_init(pin, GPIO_DIR_IN, pullup);
> +
> + /* enable global pin interrupt */
> + if (pin_num < 5) {
> + NVIC_EnableIRQ(EXTI0_IRQn + pin_num);
these seem to be off: this should be
```c
if (pin_num < 2) {
NVIC_EnableIRQ(EXTI0_1_IRQn + pin_num);
}
else if (pin_num < 4) {
NVIC_EnableIRQ(EXTI2_3_IRQn + pin_num);
...
```
---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3881/files#r39738128
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150917/07e093fd/attachment.html>
More information about the notifications
mailing list