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:
324:406fd2029f23
Parent:
149:1fb5f62b92bd
--- a/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/port/fsl_port_hal.c	Mon Sep 15 15:30:06 2014 +0100
+++ b/targets/hal/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/port/fsl_port_hal.c	Thu Sep 18 14:00:17 2014 +0100
@@ -36,32 +36,30 @@
 
 /*FUNCTION**********************************************************************
  *
- * Function Name : port_hal_global_pin_control_low
+ * Function Name : PORT_HAL_SetLowGlobalPinCtrl
  * Description   : Configure low half of pin control register for the same settings, 
  *                 this function operates pin 0 -15 of one specific port.
  *
  *END**************************************************************************/
-void port_hal_global_pin_control_low(uint32_t instance, uint16_t lowPinSelect, uint16_t config)
+void PORT_HAL_SetLowGlobalPinCtrl(uint32_t baseAddr, uint16_t lowPinSelect, uint16_t config)
 {
-    assert(instance < HW_PORT_INSTANCE_COUNT);
     uint32_t combine = lowPinSelect;
     combine = (combine << 16) + config;
-    HW_PORT_GPCLR_WR(instance, combine);
+    HW_PORT_GPCLR_WR(baseAddr, combine);
 }
 
 /*FUNCTION**********************************************************************
  *
- * Function Name : port_hal_global_pin_control_high
+ * Function Name : PORT_HAL_SetHighGlobalPinCtrl
  * Description   : Configure high half of pin control register for the same
  *                 settings, this function operates pin 16 -31 of one specific port.
  *
  *END**************************************************************************/
-void port_hal_global_pin_control_high(uint32_t instance, uint16_t highPinSelect, uint16_t config)
+void PORT_HAL_SetHighGlobalPinCtrl(uint32_t baseAddr, uint16_t highPinSelect, uint16_t config)
 {
-    assert(instance < HW_PORT_INSTANCE_COUNT);
     uint32_t combine = highPinSelect;
     combine = (combine << 16) + config;
-    HW_PORT_GPCHR_WR(instance, combine);
+    HW_PORT_GPCHR_WR(baseAddr, combine);
 }
 
 /*******************************************************************************