mbed library sources, include can_api for nucleo-f091rc
Dependents: CanNucleoF0_example
Fork of mbed-src by
Revision 24:75304dd5f5fb, committed 2013-09-17
- Comitter:
- mbed_official
- Date:
- Tue Sep 17 13:30:07 2013 +0100
- Parent:
- 23:8d50de55f208
- Child:
- 25:002053b42e66
- Commit message:
- Synchronized with git revision 8f1c636ef5efdcab0e363d61d6ea2b53c2cc1db2
Changed in this revision
common/retarget.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;