mbed lib with startup delay fixed for Nucleo401RE
Fork of mbed-src by
Diff: common/retarget.cpp
- Revision:
- 221:8276e3a4886f
- Parent:
- 83:5a6f638110fe
- Child:
- 250:a49055e7a707
diff -r aa774fb95d17 -r 8276e3a4886f common/retarget.cpp --- a/common/retarget.cpp Tue Jun 03 10:30:56 2014 +0100 +++ b/common/retarget.cpp Tue Jun 03 11:30:07 2014 +0100 @@ -126,7 +126,7 @@ // This is the workaround that the microlib author suggested us static int n = 0; if (!std::strcmp(name, ":tt")) return n++; - + #else /* Use the posix convention that stdin,out,err are filehandles 0,1,2. */ @@ -141,7 +141,7 @@ return 2; } #endif - + // find the first empty slot in filehandles unsigned int fh_i; for (fh_i = 0; fh_i < sizeof(filehandles)/sizeof(*filehandles); fh_i++) { @@ -466,7 +466,7 @@ errno = ENOMEM; return (caddr_t)-1; } - + heap = new_heap; return (caddr_t) prev_heap; }