mbed library sources. Supersedes mbed-src.

Fork of mbed by teralytic

Committer:
rodriguise
Date:
Mon Oct 17 18:47:01 2016 +0000
Revision:
148:4802eb17e82b
Parent:
144:ef7eb2e8f9f7
backup

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 144:ef7eb2e8f9f7 1 /* mbed Microcontroller Library - stackheap
<> 144:ef7eb2e8f9f7 2 * Copyright (C) 2009-2011 ARM Limited. All rights reserved.
<> 144:ef7eb2e8f9f7 3 *
<> 144:ef7eb2e8f9f7 4 */
<> 144:ef7eb2e8f9f7 5
<> 144:ef7eb2e8f9f7 6 #include "sys_helper.h"
<> 144:ef7eb2e8f9f7 7
<> 144:ef7eb2e8f9f7 8 /* This function specifies the amount of memory of the internal RAM to
<> 144:ef7eb2e8f9f7 9 reserve for the stack. The default implementation will reserve 0 bytes
<> 144:ef7eb2e8f9f7 10 which gives the normal behaviour where the stack and heap share all the
<> 144:ef7eb2e8f9f7 11 internal RAM.
<> 144:ef7eb2e8f9f7 12
<> 144:ef7eb2e8f9f7 13 You can override this function in your code to reserve a number of bytes
<> 144:ef7eb2e8f9f7 14 for the stack.
<> 144:ef7eb2e8f9f7 15 */
<> 144:ef7eb2e8f9f7 16 extern "C" __attribute__((weak)) uint32_t __reserved_stack_size();
<> 144:ef7eb2e8f9f7 17 extern "C" __attribute__((weak)) uint32_t __reserved_stack_size() {
<> 144:ef7eb2e8f9f7 18 return 0; // return 0 to indicate that nothing is reserved
<> 144:ef7eb2e8f9f7 19 }