mbed library sources. Supersedes mbed-src.

Dependents:   BREAK_SENSOR_LED

Fork of mbed-dev by mbed official

Committer:
AnnaBridge
Date:
Wed Jun 21 17:46:44 2017 +0100
Revision:
167:e84263d55307
Parent:
149:156823d33999
Child:
172:7d866c31b3c5
This updates the lib to the mbed lib v 145

Who changed what in which revision?

UserRevisionLine numberNew 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 167:e84263d55307 22 #if defined(TARGET_NUMAKER_PFM_NUC472)
<> 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
<> 149:156823d33999 48 #elif defined(TARGET_NUMAKER_PFM_M453)
<> 149:156823d33999 49
<> 149:156823d33999 50 #if defined(__CC_ARM)
<> 149:156823d33999 51 extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Base[];
<> 149:156823d33999 52 extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Length[];
<> 149:156823d33999 53 extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Base[];
<> 149:156823d33999 54 extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Length[];
<> 149:156823d33999 55 #define HEAP_START ((unsigned char*) Image$$ARM_LIB_HEAP$$ZI$$Base)
<> 149:156823d33999 56 #define HEAP_SIZE ((uint32_t) Image$$ARM_LIB_HEAP$$ZI$$Length)
<> 149:156823d33999 57 #define ISR_STACK_START ((unsigned char*)Image$$ARM_LIB_STACK$$ZI$$Base)
<> 149:156823d33999 58 #define ISR_STACK_SIZE ((uint32_t)Image$$ARM_LIB_STACK$$ZI$$Length)
<> 149:156823d33999 59 #elif defined(__GNUC__)
<> 149:156823d33999 60 extern uint32_t __StackTop[];
<> 149:156823d33999 61 extern uint32_t __StackLimit[];
<> 149:156823d33999 62 extern uint32_t __end__[];
<> 149:156823d33999 63 extern uint32_t __HeapLimit[];
<> 149:156823d33999 64 #define HEAP_START ((unsigned char*)__end__)
<> 149:156823d33999 65 #define HEAP_SIZE ((uint32_t)((uint32_t)__HeapLimit - (uint32_t)HEAP_START))
<> 149:156823d33999 66 #define ISR_STACK_START ((unsigned char*)__StackLimit)
<> 149:156823d33999 67 #define ISR_STACK_SIZE ((uint32_t)((uint32_t)__StackTop - (uint32_t)__StackLimit))
<> 149:156823d33999 68 #elif defined(__ICCARM__)
<> 149:156823d33999 69 /* No region declarations needed */
<> 149:156823d33999 70 #else
<> 149:156823d33999 71 #error "no toolchain defined"
<> 149:156823d33999 72 #endif
<> 149:156823d33999 73
<> 149:156823d33999 74 #endif
<> 149:156823d33999 75
<> 149:156823d33999 76 #endif // MBED_MBED_RTX_H