Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: HelloWorld_CCA01M1 HelloWorld_CCA02M1 CI-data-logger-server HelloWorld_CCA02M1 ... more
This is a fork of the events subdirectory of https://github.com/ARMmbed/mbed-os.
Note, you must import this library with import name: events!!!
Diff: hal/common/retarget.cpp
- Revision:
- 7328:33c1e9a22f71
- Parent:
- 6984:94fc5d678e5f
- Child:
- 7338:b24a223c149b
--- a/hal/common/retarget.cpp Wed Jul 27 17:09:49 2016 -0500
+++ b/hal/common/retarget.cpp Fri Jul 22 13:04:53 2016 +0800
@@ -572,6 +572,13 @@
register unsigned char * stack_ptr __asm ("sp");
// Dynamic memory allocation related syscall.
+#if defined(TARGET_NUMAKER_PFM_NUC472)
+// Overwrite _sbrk() to support two region model.
+extern "C" void *__wrap__sbrk(int incr);
+extern "C" caddr_t _sbrk(int incr) {
+ return (caddr_t) __wrap__sbrk(incr);
+}
+#else
extern "C" caddr_t _sbrk(int incr) {
static unsigned char* heap = (unsigned char*)&__end__;
unsigned char* prev_heap = heap;
@@ -592,7 +599,7 @@
return (caddr_t) prev_heap;
}
#endif
-
+#endif
#if defined TOOLCHAIN_GCC_ARM
extern "C" void _exit(int return_code) {