Forked.
Fork of mbed-dev by
targets/TARGET_NUVOTON/mbed_rtx.h@172:7d866c31b3c5, 2017-08-31 (annotated)
- Committer:
- AnnaBridge
- Date:
- Thu Aug 31 17:27:04 2017 +0100
- Revision:
- 172:7d866c31b3c5
- Parent:
- 167:e84263d55307
This updates the lib to the mbed lib v 150
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 | |
<> | 149:156823d33999 | 24 | #if defined(__CC_ARM) |
<> | 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__) |
<> | 149:156823d33999 | 34 | extern uint32_t __StackTop[]; |
<> | 149:156823d33999 | 35 | extern uint32_t __StackLimit[]; |
<> | 149:156823d33999 | 36 | extern uint32_t __end__[]; |
<> | 149:156823d33999 | 37 | extern uint32_t __HeapLimit[]; |
<> | 149:156823d33999 | 38 | #define HEAP_START ((unsigned char*)__end__) |
<> | 149:156823d33999 | 39 | #define HEAP_SIZE ((uint32_t)((uint32_t)__HeapLimit - (uint32_t)HEAP_START)) |
<> | 149:156823d33999 | 40 | #define ISR_STACK_START ((unsigned char*)__StackLimit) |
<> | 149:156823d33999 | 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 |