[riot-notifications] [RIOT-OS/RIOT] Adds the atmega1284p CPU and the first version of the INGA board to RIOT (#7604)

Robert Hartung notifications at github.com
Fri Sep 15 13:38:29 CEST 2017


roberthartung commented on this pull request.



> + ** This emulates a software triggered interrupt
+ ***/
+#define AVR_CONTEXT_SWAP_INIT do { \
+            DDRA |= (1 << DDA0); \
+            PCICR |= (1 << PCIE0); \
+            PCMSK0 |= (1 << PCINT0); \
+} while (0)
+#define AVR_CONTEXT_SWAP_INTERRUPT_VECT         PCINT0_vect
+#define AVR_CONTEXT_SWAP_INTERRUPT_VECT_NUM     PCINT0_vect_num
+#define AVR_CONTEXT_SWAP_TRIGGER                PORTA ^= (1 << PA0)
+
+/**
+ * Context swap defines
+ * Setup to use WDT interrupt
+ */
+/*

It's an alternative implementation that uses the WDT interrupt, in case someone needs the port interrupt pin.

-- 
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/7604#discussion_r139127160
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20170915/3c67afc6/attachment.html>


More information about the notifications mailing list