helpfor studient

Dependents:   STM32_F103-C8T6basecanblink_led

Fork of mbed-dev by mbed official

Committer:
AnnaBridge
Date:
Thu Apr 19 17:12:19 2018 +0100
Revision:
185:08ed48f1de7f
Parent:
182:57724642e740
mbed-dev library. Release version 161

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Anna Bridge 181:96ed750bd169 1 /* mbed Microcontroller Library
Anna Bridge 181:96ed750bd169 2 * Copyright (c) 2016 ARM Limited
Anna Bridge 181:96ed750bd169 3 *
Anna Bridge 181:96ed750bd169 4 * Licensed under the Apache License, Version 2.0 (the "License");
Anna Bridge 181:96ed750bd169 5 * you may not use this file except in compliance with the License.
Anna Bridge 181:96ed750bd169 6 * You may obtain a copy of the License at
Anna Bridge 181:96ed750bd169 7 *
Anna Bridge 181:96ed750bd169 8 * http://www.apache.org/licenses/LICENSE-2.0
Anna Bridge 181:96ed750bd169 9 *
Anna Bridge 181:96ed750bd169 10 * Unless required by applicable law or agreed to in writing, software
Anna Bridge 181:96ed750bd169 11 * distributed under the License is distributed on an "AS IS" BASIS,
Anna Bridge 181:96ed750bd169 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Anna Bridge 181:96ed750bd169 13 * See the License for the specific language governing permissions and
Anna Bridge 181:96ed750bd169 14 * limitations under the License.
Anna Bridge 181:96ed750bd169 15 */
Anna Bridge 181:96ed750bd169 16 #ifndef MBED_MBED_RTX_H
Anna Bridge 181:96ed750bd169 17 #define MBED_MBED_RTX_H
Anna Bridge 181:96ed750bd169 18
Anna Bridge 181:96ed750bd169 19 #include <stdint.h>
Anna Bridge 181:96ed750bd169 20
AnnaBridge 185:08ed48f1de7f 21 #if defined(TARGET_RZ_A1H) || defined(TARGET_VK_RZ_A1H) || defined(TARGET_GR_LYCHEE)
Anna Bridge 181:96ed750bd169 22 #define OS_IDLE_THREAD_STACK_SIZE 512
Anna Bridge 181:96ed750bd169 23
Anna Bridge 181:96ed750bd169 24 #if defined(__CC_ARM)
Anna Bridge 181:96ed750bd169 25 extern char Image$$ARM_LIB_STACK$$Base[];
Anna Bridge 181:96ed750bd169 26 extern char Image$$ARM_LIB_STACK$$ZI$$Limit[];
Anna Bridge 181:96ed750bd169 27 extern char Image$$ARM_LIB_HEAP$$Base[];
Anna Bridge 181:96ed750bd169 28 #define ISR_STACK_START ((unsigned char*)Image$$ARM_LIB_STACK$$Base)
Anna Bridge 181:96ed750bd169 29 #define ISR_STACK_SIZE ((uint32_t)((uint32_t)Image$$ARM_LIB_STACK$$ZI$$Limit - (uint32_t)Image$$ARM_LIB_STACK$$Base))
Anna Bridge 181:96ed750bd169 30 #define INITIAL_SP (Image$$ARM_LIB_STACK$$ZI$$Limit)
Anna Bridge 181:96ed750bd169 31 #define HEAP_START ((unsigned char*)Image$$ARM_LIB_HEAP$$Base)
Anna Bridge 181:96ed750bd169 32 #define HEAP_SIZE ((uint32_t)((uint32_t)ISR_STACK_START - (uint32_t)HEAP_START))
Anna Bridge 181:96ed750bd169 33 #elif defined(__GNUC__)
Anna Bridge 181:96ed750bd169 34 extern uint32_t __StackTop;
Anna Bridge 181:96ed750bd169 35 extern uint32_t __StackLimit;
Anna Bridge 181:96ed750bd169 36 extern uint32_t __end__;
Anna Bridge 181:96ed750bd169 37 #define ISR_STACK_START ((unsigned char*)&__StackLimit)
Anna Bridge 181:96ed750bd169 38 #define ISR_STACK_SIZE ((uint32_t)((uint32_t)&__StackTop - (uint32_t)&__StackLimit))
Anna Bridge 181:96ed750bd169 39 #define INITIAL_SP (&__StackTop)
Anna Bridge 181:96ed750bd169 40 #define HEAP_START ((unsigned char*)&__end__)
Anna Bridge 181:96ed750bd169 41 #define HEAP_SIZE ((uint32_t)((uint32_t)ISR_STACK_START - (uint32_t)HEAP_START))
Anna Bridge 181:96ed750bd169 42 #elif defined(__ICCARM__)
Anna Bridge 181:96ed750bd169 43 /* No region declarations needed */
Anna Bridge 181:96ed750bd169 44 #else
Anna Bridge 181:96ed750bd169 45 #error "no toolchain defined"
Anna Bridge 181:96ed750bd169 46 #endif
AnnaBridge 182:57724642e740 47 #endif
Anna Bridge 181:96ed750bd169 48
Anna Bridge 181:96ed750bd169 49 #endif // MBED_MBED_RTX_H