mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
targets/TARGET_NUVOTON/TARGET_NUC472/device/TOOLCHAIN_ARM_STD/sys.cpp@174:b96e65c34a4d, 2017-10-02 (annotated)
- Committer:
- AnnaBridge
- Date:
- Mon Oct 02 15:33:19 2017 +0100
- Revision:
- 174:b96e65c34a4d
- Parent:
- 149:156823d33999
This updates the lib to the mbed lib v 152
Who changed what in which revision?
User | Revision | Line number | New 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 | * Setup a fixed single stack/heap memory model, |
<> | 144:ef7eb2e8f9f7 | 5 | * between the top of the RW/ZI region and the stackpointer |
<> | 144:ef7eb2e8f9f7 | 6 | */ |
<> | 144:ef7eb2e8f9f7 | 7 | |
<> | 144:ef7eb2e8f9f7 | 8 | #ifdef __cplusplus |
<> | 144:ef7eb2e8f9f7 | 9 | extern "C" { |
<> | 144:ef7eb2e8f9f7 | 10 | #endif |
<> | 144:ef7eb2e8f9f7 | 11 | |
AnnaBridge | 174:b96e65c34a4d | 12 | #if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) |
AnnaBridge | 174:b96e65c34a4d | 13 | #include <arm_compat.h> |
AnnaBridge | 174:b96e65c34a4d | 14 | #endif |
AnnaBridge | 174:b96e65c34a4d | 15 | |
<> | 144:ef7eb2e8f9f7 | 16 | #include <rt_misc.h> |
<> | 144:ef7eb2e8f9f7 | 17 | #include <stdint.h> |
<> | 144:ef7eb2e8f9f7 | 18 | |
<> | 144:ef7eb2e8f9f7 | 19 | extern char Image$$ARM_LIB_STACK$$ZI$$Limit[]; |
<> | 144:ef7eb2e8f9f7 | 20 | extern char Image$$ARM_LIB_HEAP$$Base[]; |
<> | 144:ef7eb2e8f9f7 | 21 | extern char Image$$ARM_LIB_HEAP$$ZI$$Limit[]; |
AnnaBridge | 174:b96e65c34a4d | 22 | extern __value_in_regs struct __initial_stackheap _mbed_user_setup_stackheap(uint32_t R0, uint32_t R1, uint32_t R2, uint32_t R3) { |
<> | 144:ef7eb2e8f9f7 | 23 | |
<> | 144:ef7eb2e8f9f7 | 24 | struct __initial_stackheap r; |
<> | 144:ef7eb2e8f9f7 | 25 | r.heap_base = (uint32_t)Image$$ARM_LIB_HEAP$$Base; |
<> | 144:ef7eb2e8f9f7 | 26 | r.heap_limit = (uint32_t)Image$$ARM_LIB_HEAP$$ZI$$Limit; |
<> | 144:ef7eb2e8f9f7 | 27 | return r; |
<> | 144:ef7eb2e8f9f7 | 28 | } |
<> | 144:ef7eb2e8f9f7 | 29 | |
<> | 144:ef7eb2e8f9f7 | 30 | #ifdef __cplusplus |
<> | 144:ef7eb2e8f9f7 | 31 | } |
<> | 144:ef7eb2e8f9f7 | 32 | #endif |