mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Revision:
363:12a245e5c745
Parent:
82:0b31dbcd4769
--- a/targets/hal/TARGET_Freescale/TARGET_KLXX/port_api.c	Tue Oct 21 16:30:07 2014 +0100
+++ b/targets/hal/TARGET_Freescale/TARGET_KLXX/port_api.c	Thu Oct 23 09:45:08 2014 +0100
@@ -24,9 +24,11 @@
 void port_init(port_t *obj, PortName port, int mask, PinDirection dir) {
     obj->port = port;
     obj->mask = mask;
-
+#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_out = &reg->PDOR;
     obj->reg_in  = &reg->PDIR;
     obj->reg_dir = &reg->PDDR;