mbed-src updated for BMD-200 evaluation board. Just pin numbers are updated.
Dependents: mbed_blinky-bmd-200 bmd-200_accel_demo firstRig
Fork of mbed-src by
Replacement for the "mbed" or "mbed-src" library when using the BMD-200 Evaluation kit. This library only remaps the pin names (i.e. LED1 points to p0.01 instead of p0.18, etc) as used by the BMD-200 Evaluation board (select the nRF51822_mkit platform). All other code is untouched.
Diff: targets/hal/TARGET_NXP/TARGET_LPC43XX/objects.h
- 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