mbed library sources modified for open wear

Dependents:   openwear-lifelogger-example

Fork of mbed-src by mbed official

Revision:
256:76fd9a263045
Parent:
20:4263a77256ae
--- a/targets/hal/TARGET_NXP/TARGET_LPC43XX/objects.h	Fri Jul 11 10:00:08 2014 +0100
+++ b/targets/hal/TARGET_NXP/TARGET_LPC43XX/objects.h	Tue Jul 15 07:45:08 2014 +0100
@@ -20,6 +20,7 @@
 #include "PortNames.h"
 #include "PeripheralNames.h"
 #include "PinNames.h"
+#include "gpio_object.h"
 
 #ifdef __cplusplus
 extern "C" {
@@ -40,9 +41,8 @@
 };
 
 struct pwmout_s {
-    __IO uint32_t *MR;
-    LPC_MCPWM_T *pwm;
-    uint32_t channel;
+    PWMName pwm;
+    uint8_t mr;
 };
 
 struct serial_s {
@@ -51,7 +51,9 @@
 };
 
 struct analogin_s {
-    ADCName adc;
+    LPC_ADC_T *adc;
+    uint8_t num;
+    uint8_t ch;
 };
 
 struct dac_s {
@@ -70,8 +72,6 @@
     LPC_SSP_T *spi;
 };
 
-#include "gpio_object.h"
-
 #ifdef __cplusplus
 }
 #endif