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:
- 7577:7f69c9d2176d
- Parent:
- 7539:b568b913d7a4
- Parent:
- 7575:67b11b21d959
- Child:
- 7604:4544d30abb2a
diff -r 08fb98ef6f6e -r 7f69c9d2176d hal/common/retarget.cpp
--- a/hal/common/retarget.cpp Fri Aug 26 07:00:07 2016 -0500
+++ b/hal/common/retarget.cpp Fri Aug 26 09:22:49 2016 -0500
@@ -752,7 +752,7 @@
// Provide implementation of _sbrk (low-level dynamic memory allocation
// routine) for GCC_ARM which compares new heap pointer with MSP instead of
// SP. This make it compatible with RTX RTOS thread stacks.
-#if defined(TOOLCHAIN_GCC_ARM)
+#if defined(TOOLCHAIN_GCC_ARM) || defined(TOOLCHAIN_GCC_CR)
// Linker defined symbol used by _sbrk to indicate where heap should start.
extern "C" int __end__;
@@ -803,7 +803,7 @@
#endif
#endif
-#if defined TOOLCHAIN_GCC_ARM
+#if defined(TOOLCHAIN_GCC_ARM) || defined(TOOLCHAIN_GCC_CR)
extern "C" void _exit(int return_code) {
#else
namespace std {
@@ -827,7 +827,7 @@
while (1);
}
-#if !defined(TOOLCHAIN_GCC_ARM)
+#if !defined(TOOLCHAIN_GCC_ARM) && !defined(TOOLCHAIN_GCC_CR)
} //namespace std
#endif