Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-src by
Diff: targets/hal/TARGET_Freescale/TARGET_KLXX/gpio_api.c
- 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 = ®->PSOR;
     obj->reg_clr = ®->PCOR;
     obj->reg_in  = ®->PDIR;
    