mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
Diff: targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys.cpp
- Revision:
- 71:ca88dd32f209
- Parent:
- 15:4892fe388435
--- a/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys.cpp Tue Jan 07 11:00:05 2014 +0000 +++ b/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys.cpp Thu Jan 09 09:00:05 2014 +0000 @@ -11,6 +11,7 @@ #include <rt_misc.h> #include <stdint.h> +#include "sys_helper.h" extern char Image$$RW_IRAM1$$ZI$$Limit[]; @@ -22,7 +23,7 @@ struct __initial_stackheap r; r.heap_base = zi_limit; - r.heap_limit = sp_limit; + r.heap_limit = sp_limit - __reserved_stack_size(); return r; }