Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
targets/TARGET_NUVOTON/mbed_rtx.h@174:ed647f63e28d, 2017-12-19 (annotated)
- Committer:
- Dollyparton
- Date:
- Tue Dec 19 12:50:13 2017 +0000
- Revision:
- 174:ed647f63e28d
- Parent:
- 172:7d866c31b3c5
Added RAW socket.
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 |