Maintool / mbed-src-v4

Fork of mbed-src by mbed official

Revision:
363:12a245e5c745
Parent:
227:7bd0639b8911
--- a/targets/hal/TARGET_Freescale/TARGET_KLXX/gpio_api.c	Tue Oct 21 16:30:07 2014 +0100
+++ b/targets/hal/TARGET_Freescale/TARGET_KLXX/gpio_api.c	Thu Oct 23 09:45:08 2014 +0100
@@ -32,7 +32,11 @@
 
     unsigned int port = (unsigned int)pin >> PORT_SHIFT;
 
+#if defined(TARGET_KL43Z)
+    GPIO_Type *reg = (GPIO_Type *)(GPIOA_BASE + port * 0x40);
+#else
     FGPIO_Type *reg = (FGPIO_Type *)(FPTA_BASE + port * 0x40);
+#endif
     obj->reg_set = &reg->PSOR;
     obj->reg_clr = &reg->PCOR;
     obj->reg_in  = &reg->PDIR;