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: common/retarget.cpp
- Revision:
- 24:75304dd5f5fb
- Parent:
- 23:8d50de55f208
- Child:
- 83:5a6f638110fe
diff -r 8d50de55f208 -r 75304dd5f5fb common/retarget.cpp --- a/common/retarget.cpp Mon Sep 16 16:15:04 2013 +0100 +++ b/common/retarget.cpp Tue Sep 17 13:30:07 2013 +0100 @@ -448,10 +448,10 @@ unsigned char* prev_heap = heap; unsigned char* new_heap = heap + incr; -#ifdef __get_MSP +#if defined(TARGET_ARM7) + if (new_heap >= stack_ptr) { +#else if (new_heap >= (unsigned char*)__get_MSP()) { -#else - if (new_heap >= stack_ptr) { #endif errno = ENOMEM; return (caddr_t)-1;