test
targets/TARGET_Realtek/mbed_rtx.h@2:4364577b5ad8, 2020-11-09 (annotated)
- Committer:
- elijahsj
- Date:
- Mon Nov 09 00:33:19 2020 -0500
- Revision:
- 2:4364577b5ad8
- Parent:
- 1:8a094db1347f
copied mbed library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
elijahsj | 1:8a094db1347f | 1 | /* mbed Microcontroller Library |
elijahsj | 1:8a094db1347f | 2 | * Copyright (c) 2013-2016 Realtek Semiconductor Corp. |
elijahsj | 1:8a094db1347f | 3 | * |
elijahsj | 1:8a094db1347f | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
elijahsj | 1:8a094db1347f | 5 | * you may not use this file except in compliance with the License. |
elijahsj | 1:8a094db1347f | 6 | * You may obtain a copy of the License at |
elijahsj | 1:8a094db1347f | 7 | * |
elijahsj | 1:8a094db1347f | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
elijahsj | 1:8a094db1347f | 9 | * |
elijahsj | 1:8a094db1347f | 10 | * Unless required by applicable law or agreed to in writing, software |
elijahsj | 1:8a094db1347f | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
elijahsj | 1:8a094db1347f | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
elijahsj | 1:8a094db1347f | 13 | * See the License for the specific language governing permissions and |
elijahsj | 1:8a094db1347f | 14 | * limitations under the License. |
elijahsj | 1:8a094db1347f | 15 | */ |
elijahsj | 1:8a094db1347f | 16 | #ifndef MBED_MBED_RTX_H |
elijahsj | 1:8a094db1347f | 17 | #define MBED_MBED_RTX_H |
elijahsj | 1:8a094db1347f | 18 | |
elijahsj | 1:8a094db1347f | 19 | #if defined(TARGET_RTL8195A) |
elijahsj | 1:8a094db1347f | 20 | |
elijahsj | 1:8a094db1347f | 21 | #include "rtl8195a.h" |
elijahsj | 1:8a094db1347f | 22 | |
elijahsj | 1:8a094db1347f | 23 | #if defined(__CC_ARM) || (defined(__ARMCC_VERSION) || (__ARMCC_VERSION >= 6010050)) |
elijahsj | 1:8a094db1347f | 24 | extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Base[]; |
elijahsj | 1:8a094db1347f | 25 | extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Length[]; |
elijahsj | 1:8a094db1347f | 26 | #define ISR_STACK_START (unsigned char *)(Image$$ARM_LIB_STACK$$ZI$$Base) |
elijahsj | 1:8a094db1347f | 27 | #define ISR_STACK_SIZE (uint32_t)(Image$$ARM_LIB_STACK$$ZI$$Length) |
elijahsj | 1:8a094db1347f | 28 | #define INITIAL_SP (uint32_t)(Image$$ARM_LIB_STACK$$ZI$$Base) |
elijahsj | 1:8a094db1347f | 29 | #elif defined(__GNUC__) |
elijahsj | 1:8a094db1347f | 30 | extern uint32_t __StackTop[]; |
elijahsj | 1:8a094db1347f | 31 | extern uint32_t __StackLimit[]; |
elijahsj | 1:8a094db1347f | 32 | extern uint32_t __HeapLimit[]; |
elijahsj | 1:8a094db1347f | 33 | #define INITIAL_SP (__StackTop) |
elijahsj | 1:8a094db1347f | 34 | #endif |
elijahsj | 1:8a094db1347f | 35 | |
elijahsj | 1:8a094db1347f | 36 | |
elijahsj | 1:8a094db1347f | 37 | #if defined(__CC_ARM) || defined(__GNUC__) |
elijahsj | 1:8a094db1347f | 38 | #ifndef ISR_STACK_SIZE |
elijahsj | 1:8a094db1347f | 39 | #define ISR_STACK_SIZE (0x1000) |
elijahsj | 1:8a094db1347f | 40 | #endif |
elijahsj | 1:8a094db1347f | 41 | #endif |
elijahsj | 1:8a094db1347f | 42 | |
elijahsj | 1:8a094db1347f | 43 | #ifndef OS_TASKCNT |
elijahsj | 1:8a094db1347f | 44 | #define OS_TASKCNT 14 |
elijahsj | 1:8a094db1347f | 45 | #endif |
elijahsj | 1:8a094db1347f | 46 | #ifndef OS_MAINSTKSIZE |
elijahsj | 1:8a094db1347f | 47 | #define OS_MAINSTKSIZE 256 |
elijahsj | 1:8a094db1347f | 48 | #endif |
elijahsj | 1:8a094db1347f | 49 | #ifndef OS_CLOCK |
elijahsj | 1:8a094db1347f | 50 | #define OS_CLOCK PLATFORM_CLK |
elijahsj | 1:8a094db1347f | 51 | #endif |
elijahsj | 1:8a094db1347f | 52 | |
elijahsj | 1:8a094db1347f | 53 | #endif |
elijahsj | 1:8a094db1347f | 54 | #endif |