mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Revision:
24:75304dd5f5fb
Parent:
23:8d50de55f208
Child:
83:5a6f638110fe
--- 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;