The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
AnnaBridge
Date:
Wed Jun 21 17:31:38 2017 +0100
Revision:
145:64910690c574
Parent:
128:9bcdf88f62b0
Child:
150:a330f0fddbec
Release 145 of the mbed library.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 128:9bcdf88f62b0 1 /* mbed Microcontroller Library
<> 128:9bcdf88f62b0 2 * Copyright (c) 2016 ARM Limited
<> 128:9bcdf88f62b0 3 *
<> 128:9bcdf88f62b0 4 * Licensed under the Apache License, Version 2.0 (the "License");
<> 128:9bcdf88f62b0 5 * you may not use this file except in compliance with the License.
<> 128:9bcdf88f62b0 6 * You may obtain a copy of the License at
<> 128:9bcdf88f62b0 7 *
<> 128:9bcdf88f62b0 8 * http://www.apache.org/licenses/LICENSE-2.0
<> 128:9bcdf88f62b0 9 *
<> 128:9bcdf88f62b0 10 * Unless required by applicable law or agreed to in writing, software
<> 128:9bcdf88f62b0 11 * distributed under the License is distributed on an "AS IS" BASIS,
<> 128:9bcdf88f62b0 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<> 128:9bcdf88f62b0 13 * See the License for the specific language governing permissions and
<> 128:9bcdf88f62b0 14 * limitations under the License.
<> 128:9bcdf88f62b0 15 */
<> 128:9bcdf88f62b0 16
<> 128:9bcdf88f62b0 17 #ifndef MBED_MBED_RTX_H
<> 128:9bcdf88f62b0 18 #define MBED_MBED_RTX_H
<> 128:9bcdf88f62b0 19
AnnaBridge 145:64910690c574 20 #include <stdint.h>
<> 128:9bcdf88f62b0 21
AnnaBridge 145:64910690c574 22 #if defined(TARGET_NUMAKER_PFM_NUC472)
<> 128:9bcdf88f62b0 23
<> 128:9bcdf88f62b0 24 #if defined(__CC_ARM)
<> 128:9bcdf88f62b0 25 extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Base[];
<> 128:9bcdf88f62b0 26 extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Length[];
<> 128:9bcdf88f62b0 27 extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Base[];
<> 128:9bcdf88f62b0 28 extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Length[];
<> 128:9bcdf88f62b0 29 #define HEAP_START ((unsigned char*) Image$$ARM_LIB_HEAP$$ZI$$Base)
<> 128:9bcdf88f62b0 30 #define HEAP_SIZE ((uint32_t) Image$$ARM_LIB_HEAP$$ZI$$Length)
<> 128:9bcdf88f62b0 31 #define ISR_STACK_START ((unsigned char*)Image$$ARM_LIB_STACK$$ZI$$Base)
<> 128:9bcdf88f62b0 32 #define ISR_STACK_SIZE ((uint32_t)Image$$ARM_LIB_STACK$$ZI$$Length)
<> 128:9bcdf88f62b0 33 #elif defined(__GNUC__)
<> 128:9bcdf88f62b0 34 extern uint32_t __StackTop[];
<> 128:9bcdf88f62b0 35 extern uint32_t __StackLimit[];
<> 128:9bcdf88f62b0 36 extern uint32_t __end__[];
<> 128:9bcdf88f62b0 37 extern uint32_t __HeapLimit[];
<> 128:9bcdf88f62b0 38 #define HEAP_START ((unsigned char*)__end__)
<> 128:9bcdf88f62b0 39 #define HEAP_SIZE ((uint32_t)((uint32_t)__HeapLimit - (uint32_t)HEAP_START))
<> 128:9bcdf88f62b0 40 #define ISR_STACK_START ((unsigned char*)__StackLimit)
<> 128:9bcdf88f62b0 41 #define ISR_STACK_SIZE ((uint32_t)((uint32_t)__StackTop - (uint32_t)__StackLimit))
<> 128:9bcdf88f62b0 42 #elif defined(__ICCARM__)
<> 128:9bcdf88f62b0 43 /* No region declarations needed */
<> 128:9bcdf88f62b0 44 #else
<> 128:9bcdf88f62b0 45 #error "no toolchain defined"
<> 128:9bcdf88f62b0 46 #endif
<> 128:9bcdf88f62b0 47
<> 128:9bcdf88f62b0 48 #elif defined(TARGET_NUMAKER_PFM_M453)
<> 128:9bcdf88f62b0 49
<> 128:9bcdf88f62b0 50 #if defined(__CC_ARM)
<> 128:9bcdf88f62b0 51 extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Base[];
<> 128:9bcdf88f62b0 52 extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Length[];
<> 128:9bcdf88f62b0 53 extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Base[];
<> 128:9bcdf88f62b0 54 extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Length[];
<> 128:9bcdf88f62b0 55 #define HEAP_START ((unsigned char*) Image$$ARM_LIB_HEAP$$ZI$$Base)
<> 128:9bcdf88f62b0 56 #define HEAP_SIZE ((uint32_t) Image$$ARM_LIB_HEAP$$ZI$$Length)
<> 128:9bcdf88f62b0 57 #define ISR_STACK_START ((unsigned char*)Image$$ARM_LIB_STACK$$ZI$$Base)
<> 128:9bcdf88f62b0 58 #define ISR_STACK_SIZE ((uint32_t)Image$$ARM_LIB_STACK$$ZI$$Length)
<> 128:9bcdf88f62b0 59 #elif defined(__GNUC__)
<> 128:9bcdf88f62b0 60 extern uint32_t __StackTop[];
<> 128:9bcdf88f62b0 61 extern uint32_t __StackLimit[];
<> 128:9bcdf88f62b0 62 extern uint32_t __end__[];
<> 128:9bcdf88f62b0 63 extern uint32_t __HeapLimit[];
<> 128:9bcdf88f62b0 64 #define HEAP_START ((unsigned char*)__end__)
<> 128:9bcdf88f62b0 65 #define HEAP_SIZE ((uint32_t)((uint32_t)__HeapLimit - (uint32_t)HEAP_START))
<> 128:9bcdf88f62b0 66 #define ISR_STACK_START ((unsigned char*)__StackLimit)
<> 128:9bcdf88f62b0 67 #define ISR_STACK_SIZE ((uint32_t)((uint32_t)__StackTop - (uint32_t)__StackLimit))
<> 128:9bcdf88f62b0 68 #elif defined(__ICCARM__)
<> 128:9bcdf88f62b0 69 /* No region declarations needed */
<> 128:9bcdf88f62b0 70 #else
<> 128:9bcdf88f62b0 71 #error "no toolchain defined"
<> 128:9bcdf88f62b0 72 #endif
<> 128:9bcdf88f62b0 73
<> 128:9bcdf88f62b0 74 #endif
<> 128:9bcdf88f62b0 75
<> 128:9bcdf88f62b0 76 #endif // MBED_MBED_RTX_H