mbed library sources modified for open wear

Dependents:   openwear-lifelogger-example

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Thu Jan 09 09:00:05 2014 +0000
Revision:
71:ca88dd32f209
Synchronized with git revision fa9f5da46934cff09860c5112938b8bc976a340d

Full URL: https://github.com/mbedmicro/mbed/commit/fa9f5da46934cff09860c5112938b8bc976a340d/

[LPC4088] RAM size fix for ARM_GCC. Added possibility to reserve stack space

Who changed what in which revision?

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