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_LPC176X/sleep.c
- Revision:
- 79:6fdc4ea80ae0
- Parent:
- 13:0645d8841f51
--- a/targets/hal/TARGET_NXP/TARGET_LPC176X/sleep.c Wed Jan 29 18:45:05 2014 +0000 +++ b/targets/hal/TARGET_NXP/TARGET_LPC176X/sleep.c Thu Jan 30 09:45:05 2014 +0000 @@ -18,9 +18,12 @@ #include "mbed_interface.h" void sleep(void) { + +#if (DEVICE_SEMIHOST == 1) // ensure debug is disconnected mbed_interface_disconnect(); - +#endif + // PCON[PD] set to sleep LPC_SC->PCON = 0x0; @@ -58,8 +61,11 @@ */ void deepsleep(void) { + +#if (DEVICE_SEMIHOST == 1) // ensure debug is disconnected mbed_interface_disconnect(); +#endif // PCON[PD] set to deepsleep sleep();