[riot-notifications] [RIOT-OS/RIOT] cpu: mips_pic32_common: Implement GPIO IRQ (#13820)

François Berder notifications at github.com
Sat May 2 19:01:17 CEST 2020


@francois-berder commented on this pull request.



> +    isr_handler(_PORTE_BASE_ADDRESS);
+#endif
+#ifdef _PORTF_BASE_ADDRESS
+    isr_handler(_PORTF_BASE_ADDRESS);
+#endif
+#ifdef _PORTG_BASE_ADDRESS
+    isr_handler(_PORTG_BASE_ADDRESS);
+#endif
+
+    mips32r2_isr_end();
+}
+#elif defined(CPU_FAM_PIC32MZ)
+static void isr_handler(uint32_t port_addr)
+{
+    unsigned int pin = 0;
+    for (pin = 0; pin < GPIO_NUMOF; ++pin) {

> Does the PIC32 implement clz?

Indeed ! That is a nice trick. I changed the implementation.

-- 
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/13820#discussion_r418981860
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200502/2bed3e25/attachment.htm>


More information about the notifications mailing list