mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
targets/TARGET_NUVOTON/mbed_rtx.h@187:0387e8f68319, 2018-09-06 (annotated)
- Committer:
- AnnaBridge
- Date:
- Thu Sep 06 13:40:20 2018 +0100
- Revision:
- 187:0387e8f68319
- Parent:
- 174:b96e65c34a4d
- Child:
- 188:bcfe06ba3d64
mbed-dev library. Release version 163
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 149:156823d33999 | 1 | /* mbed Microcontroller Library |
<> | 149:156823d33999 | 2 | * Copyright (c) 2016 ARM Limited |
<> | 149:156823d33999 | 3 | * |
<> | 149:156823d33999 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
<> | 149:156823d33999 | 5 | * you may not use this file except in compliance with the License. |
<> | 149:156823d33999 | 6 | * You may obtain a copy of the License at |
<> | 149:156823d33999 | 7 | * |
<> | 149:156823d33999 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
<> | 149:156823d33999 | 9 | * |
<> | 149:156823d33999 | 10 | * Unless required by applicable law or agreed to in writing, software |
<> | 149:156823d33999 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
<> | 149:156823d33999 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
<> | 149:156823d33999 | 13 | * See the License for the specific language governing permissions and |
<> | 149:156823d33999 | 14 | * limitations under the License. |
<> | 149:156823d33999 | 15 | */ |
<> | 149:156823d33999 | 16 | |
<> | 149:156823d33999 | 17 | #ifndef MBED_MBED_RTX_H |
<> | 149:156823d33999 | 18 | #define MBED_MBED_RTX_H |
<> | 149:156823d33999 | 19 | |
AnnaBridge | 167:e84263d55307 | 20 | #include <stdint.h> |
<> | 149:156823d33999 | 21 | |
AnnaBridge | 172:7d866c31b3c5 | 22 | #if defined(TARGET_NUVOTON) |
<> | 149:156823d33999 | 23 | |
AnnaBridge | 174:b96e65c34a4d | 24 | #if defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)) |
<> | 149:156823d33999 | 25 | extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Base[]; |
<> | 149:156823d33999 | 26 | extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Length[]; |
<> | 149:156823d33999 | 27 | extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Base[]; |
<> | 149:156823d33999 | 28 | extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Length[]; |
<> | 149:156823d33999 | 29 | #define HEAP_START ((unsigned char*) Image$$ARM_LIB_HEAP$$ZI$$Base) |
<> | 149:156823d33999 | 30 | #define HEAP_SIZE ((uint32_t) Image$$ARM_LIB_HEAP$$ZI$$Length) |
<> | 149:156823d33999 | 31 | #define ISR_STACK_START ((unsigned char*)Image$$ARM_LIB_STACK$$ZI$$Base) |
<> | 149:156823d33999 | 32 | #define ISR_STACK_SIZE ((uint32_t)Image$$ARM_LIB_STACK$$ZI$$Length) |
<> | 149:156823d33999 | 33 | #elif defined(__GNUC__) |
AnnaBridge | 187:0387e8f68319 | 34 | extern uint32_t __StackTop; |
AnnaBridge | 187:0387e8f68319 | 35 | extern uint32_t __StackLimit; |
AnnaBridge | 187:0387e8f68319 | 36 | extern uint32_t __end__; |
AnnaBridge | 187:0387e8f68319 | 37 | extern uint32_t __HeapLimit; |
AnnaBridge | 187:0387e8f68319 | 38 | #define HEAP_START ((unsigned char*) &__end__) |
AnnaBridge | 187:0387e8f68319 | 39 | #define HEAP_SIZE ((uint32_t) ((uint32_t) &__HeapLimit - (uint32_t) HEAP_START)) |
AnnaBridge | 187:0387e8f68319 | 40 | #define ISR_STACK_START ((unsigned char*) &__StackLimit) |
AnnaBridge | 187:0387e8f68319 | 41 | #define ISR_STACK_SIZE ((uint32_t)((uint32_t) &__StackTop - (uint32_t) &__StackLimit)) |
<> | 149:156823d33999 | 42 | #elif defined(__ICCARM__) |
<> | 149:156823d33999 | 43 | /* No region declarations needed */ |
<> | 149:156823d33999 | 44 | #else |
<> | 149:156823d33999 | 45 | #error "no toolchain defined" |
<> | 149:156823d33999 | 46 | #endif |
<> | 149:156823d33999 | 47 | |
AnnaBridge | 172:7d866c31b3c5 | 48 | #endif // TARGET_NUVOTON |
<> | 149:156823d33999 | 49 | |
<> | 149:156823d33999 | 50 | #endif // MBED_MBED_RTX_H |