[riot-notifications] [RIOT-OS/RIOT] [WIP] cpu/atmega_common: pseudomodule-based pin change interrupt implementation (#11122)

Robert Hartung notifications at github.com
Mon Mar 11 10:16:38 CET 2019


Very strange ... the pcint handler in `gpio.c` seems to match the correct bank + pin offset, but it breaks on a higher level. Will keep debugging:

```
2019-03-11 10:05:37,482 - INFO # pcint for 2/7
2019-03-11 10:05:37,536 - INFO # INT: 6 Pin = 8; IRQ type = PCINT0; flank(s) = falling
2019-03-11 10:05:37,789 - INFO # pcint for 2/7
2019-03-11 10:05:37,843 - INFO # INT: 6 Pin = 8; IRQ type = PCINT0; flank(s) = falling
2019-03-11 10:05:38,572 - INFO # pcint for 2/6
2019-03-11 10:05:38,626 - INFO # INT: 6 Pin = 8; IRQ type = PCINT0; flank(s) = falling
2019-03-11 10:05:39,038 - INFO # pcint for 2/5
2019-03-11 10:05:39,096 - INFO # INT: 6 Pin = 8; IRQ type = PCINT0; flank(s) = falling
2019-03-11 10:05:39,767 - INFO # pcint for 2/4
2019-03-11 10:05:39,825 - INFO # INT: 6 Pin = 8; IRQ type = PCINT0; flank(s) = falling
2019-03-11 10:05:40,042 - INFO # pcint for 2/4
2019-03-11 10:05:40,100 - INFO # INT: 6 Pin = 8; IRQ type = PCINT0; flank(s) = falling
2019-03-11 10:05:40,505 - INFO # INT: 1 Pin = 3; IRQ type = INT1; flank(s) = rising
2019-03-11 10:05:40,558 - INFO # INT: 1 Pin = 3; IRQ type = INT1; flank(s) = rising
2019-03-11 10:05:40,783 - INFO # INT: 1 Pin = 3; IRQ type = INT1; flank(s) = rising
2019-03-11 10:05:40,836 - INFO # INT: 1 Pin = 3; IRQ type = INT1; flank(s) = rising
2019-03-11 10:05:41,258 - INFO # INT: 0 Pin = 2; IRQ type = INT0; flank(s) = falling
2019-03-11 10:05:41,316 - INFO # INT: 0 Pin = 2; IRQ type = INT0; flank(s) = falling
```

Found the bug! :-)

`conf->cb(pcint_config->arg);` -> `conf->cb(conf->arg);`

I wonder why this wasn't a compiler error in the first place?!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11122#issuecomment-471461067
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190311/b937499d/attachment-0001.html>


More information about the notifications mailing list