Knight KE
/
Game_Master
游戏王对战板,目前code还是空的
mbed-os/targets/TARGET_RENESAS/mbed_rtx.h@0:9b3d4731edbb, 2018-06-21 (annotated)
- Committer:
- WFKnight
- Date:
- Thu Jun 21 13:51:43 2018 +0000
- Revision:
- 0:9b3d4731edbb
UART, RTOS, LED
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
WFKnight | 0:9b3d4731edbb | 1 | /* mbed Microcontroller Library |
WFKnight | 0:9b3d4731edbb | 2 | * Copyright (c) 2016 ARM Limited |
WFKnight | 0:9b3d4731edbb | 3 | * |
WFKnight | 0:9b3d4731edbb | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
WFKnight | 0:9b3d4731edbb | 5 | * you may not use this file except in compliance with the License. |
WFKnight | 0:9b3d4731edbb | 6 | * You may obtain a copy of the License at |
WFKnight | 0:9b3d4731edbb | 7 | * |
WFKnight | 0:9b3d4731edbb | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
WFKnight | 0:9b3d4731edbb | 9 | * |
WFKnight | 0:9b3d4731edbb | 10 | * Unless required by applicable law or agreed to in writing, software |
WFKnight | 0:9b3d4731edbb | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
WFKnight | 0:9b3d4731edbb | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
WFKnight | 0:9b3d4731edbb | 13 | * See the License for the specific language governing permissions and |
WFKnight | 0:9b3d4731edbb | 14 | * limitations under the License. |
WFKnight | 0:9b3d4731edbb | 15 | */ |
WFKnight | 0:9b3d4731edbb | 16 | #ifndef MBED_MBED_RTX_H |
WFKnight | 0:9b3d4731edbb | 17 | #define MBED_MBED_RTX_H |
WFKnight | 0:9b3d4731edbb | 18 | |
WFKnight | 0:9b3d4731edbb | 19 | #include <stdint.h> |
WFKnight | 0:9b3d4731edbb | 20 | |
WFKnight | 0:9b3d4731edbb | 21 | #if defined(TARGET_RZ_A1H) || defined(TARGET_VK_RZ_A1H) || defined(TARGET_GR_LYCHEE) |
WFKnight | 0:9b3d4731edbb | 22 | |
WFKnight | 0:9b3d4731edbb | 23 | #if defined(__CC_ARM) |
WFKnight | 0:9b3d4731edbb | 24 | extern char Image$$ARM_LIB_STACK$$Base[]; |
WFKnight | 0:9b3d4731edbb | 25 | extern char Image$$ARM_LIB_STACK$$ZI$$Limit[]; |
WFKnight | 0:9b3d4731edbb | 26 | extern char Image$$ARM_LIB_HEAP$$Base[]; |
WFKnight | 0:9b3d4731edbb | 27 | #define ISR_STACK_START ((unsigned char*)Image$$ARM_LIB_STACK$$Base) |
WFKnight | 0:9b3d4731edbb | 28 | #define ISR_STACK_SIZE ((uint32_t)((uint32_t)Image$$ARM_LIB_STACK$$ZI$$Limit - (uint32_t)Image$$ARM_LIB_STACK$$Base)) |
WFKnight | 0:9b3d4731edbb | 29 | #define INITIAL_SP (Image$$ARM_LIB_STACK$$ZI$$Limit) |
WFKnight | 0:9b3d4731edbb | 30 | #define HEAP_START ((unsigned char*)Image$$ARM_LIB_HEAP$$Base) |
WFKnight | 0:9b3d4731edbb | 31 | #define HEAP_SIZE ((uint32_t)((uint32_t)ISR_STACK_START - (uint32_t)HEAP_START)) |
WFKnight | 0:9b3d4731edbb | 32 | #elif defined(__GNUC__) |
WFKnight | 0:9b3d4731edbb | 33 | extern uint32_t __StackTop; |
WFKnight | 0:9b3d4731edbb | 34 | extern uint32_t __StackLimit; |
WFKnight | 0:9b3d4731edbb | 35 | extern uint32_t __end__; |
WFKnight | 0:9b3d4731edbb | 36 | #define ISR_STACK_START ((unsigned char*)&__StackLimit) |
WFKnight | 0:9b3d4731edbb | 37 | #define ISR_STACK_SIZE ((uint32_t)((uint32_t)&__StackTop - (uint32_t)&__StackLimit)) |
WFKnight | 0:9b3d4731edbb | 38 | #define INITIAL_SP (&__StackTop) |
WFKnight | 0:9b3d4731edbb | 39 | #define HEAP_START ((unsigned char*)&__end__) |
WFKnight | 0:9b3d4731edbb | 40 | #define HEAP_SIZE ((uint32_t)((uint32_t)ISR_STACK_START - (uint32_t)HEAP_START)) |
WFKnight | 0:9b3d4731edbb | 41 | #elif defined(__ICCARM__) |
WFKnight | 0:9b3d4731edbb | 42 | /* No region declarations needed */ |
WFKnight | 0:9b3d4731edbb | 43 | #else |
WFKnight | 0:9b3d4731edbb | 44 | #error "no toolchain defined" |
WFKnight | 0:9b3d4731edbb | 45 | #endif |
WFKnight | 0:9b3d4731edbb | 46 | #endif |
WFKnight | 0:9b3d4731edbb | 47 | |
WFKnight | 0:9b3d4731edbb | 48 | #endif // MBED_MBED_RTX_H |