[riot-notifications] [RIOT-OS/RIOT] cpu/atmega: WIP implementation of pin change interrupts (#7610)

Robert Hartung notifications at github.com
Mon Sep 18 15:20:35 CEST 2017


roberthartung commented on this pull request.



> +static inline uint8_t pcint_port_pin(volatile uint8_t *reg)
+{
+    uint8_t pin = 0;
+    uint8_t val = *reg;
+
+    while (val > 1) {
+        val = val >> 1;
+        pin++;
+    }
+    return pin;
+}
+
+#ifdef GPIO_PC_INT_NUMOF
+
+#ifndef AVR_CONTEXT_SWAP_INTERRUPT_VECT_NUM
+#error gpio.c requires the definition of AVR_CONTEXT_SWAP_INTERRUPT_VECT_NUM

I added AVR_CONTEXT_SWAP_INTERRUPT_VECT_NUM, which is not required for thread_arch.c

-- 
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/7610#discussion_r139419146
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20170918/f83c9937/attachment.html>


More information about the notifications mailing list