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

Robert Hartung notifications at github.com
Thu Mar 7 09:53:19 CET 2019


@maribu I guess you are missing the important detail ;) For example the atmega2560 has PCINT0, PCINT1, PCINT2, which I will refer to as three "banks" of pin change interrupts. My assumption was, that each bank corresponds to one ports. But surprise: NOPE! The assignment of individual pin change interrupts is arbitrary. Therefore we don't have ports, but banks of PCINTs, and we will have a submodule for each bank now.
Additionally, this will introduce a small overhead as we need to map the pin change interrupts (0-23 in the atmega2560 case) to actual ports. This is required as the ISR currently calls pcint_handler(0, ...), where 0 is the port, which in our case is not true any more. I will push an update shortly.

-- 
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/11114#issuecomment-470439652
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190307/879f1661/attachment.html>


More information about the notifications mailing list