From 2090dd0234317564a6b335d239454bc46d065b59 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= <joakim.nohlgard@eistec.se>
Date: Tue, 2 May 2017 08:09:09 +0200
Subject: [PATCH] kinetis: Add GPIO ISR for CPUs with combined PORTB+PORTC
 interrupt

---
 cpu/kinetis/periph/gpio.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/cpu/kinetis/periph/gpio.c b/cpu/kinetis/periph/gpio.c
index 161359332c..b29c0273e3 100644
--- a/cpu/kinetis/periph/gpio.c
+++ b/cpu/kinetis/periph/gpio.c
@@ -352,3 +352,12 @@ void isr_portg(void)
     irq_handler(PORTG, 6);
 }
 #endif /* ISR_PORT_G */
+
+#if defined(PORTB_BASE) && defined(PORTC_BASE)
+/* Combined ISR used in certain KL devices */
+void isr_portb_portc(void)
+{
+    irq_handler(PORTB, 1);
+    irq_handler(PORTC, 2);
+}
+#endif
-- 
GitLab