]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - tmk_core/tool/mbed/mbed-sdk/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys_helper.cpp
Merge commit '1fe4406f374291ab2e86e95a97341fd9c475fcb8'
[qmk_firmware.git] / tmk_core / tool / mbed / mbed-sdk / libraries / mbed / targets / cmsis / TARGET_NXP / TARGET_LPC408X / TOOLCHAIN_ARM_STD / sys_helper.cpp
diff --git a/tmk_core/tool/mbed/mbed-sdk/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys_helper.cpp b/tmk_core/tool/mbed/mbed-sdk/libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys_helper.cpp
new file mode 100644 (file)
index 0000000..eb31c5e
--- /dev/null
@@ -0,0 +1,19 @@
+/* mbed Microcontroller Library - stackheap
+ * Copyright (C) 2009-2011 ARM Limited. All rights reserved.
+ *
+ */
+
+#include "sys_helper.h"
+
+/* This function specifies the amount of memory of the internal RAM to
+   reserve for the stack. The default implementation will reserve 0 bytes
+   which gives the normal behaviour where the stack and heap share all the
+   internal RAM.
+
+   You can override this function in your code to reserve a number of bytes
+   for the stack.
+*/
+extern "C" __attribute__((weak)) uint32_t __reserved_stack_size();
+extern "C" __attribute__((weak)) uint32_t __reserved_stack_size() {
+    return 0; // return 0 to indicate that nothing is reserved
+}