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:
Thu Sep 06 13:39:34 2018 +0100
Revision:
170:e95d10626187
Parent:
167:84c0a372a020
mbed library. Release version 163

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 156:ff21514d8981 1 /* mbed Microcontroller Library
AnnaBridge 156:ff21514d8981 2 * Copyright (c) 2016 ARM Limited
AnnaBridge 156:ff21514d8981 3 *
AnnaBridge 156:ff21514d8981 4 * Licensed under the Apache License, Version 2.0 (the "License");
AnnaBridge 156:ff21514d8981 5 * you may not use this file except in compliance with the License.
AnnaBridge 156:ff21514d8981 6 * You may obtain a copy of the License at
AnnaBridge 156:ff21514d8981 7 *
AnnaBridge 156:ff21514d8981 8 * http://www.apache.org/licenses/LICENSE-2.0
AnnaBridge 156:ff21514d8981 9 *
AnnaBridge 156:ff21514d8981 10 * Unless required by applicable law or agreed to in writing, software
AnnaBridge 156:ff21514d8981 11 * distributed under the License is distributed on an "AS IS" BASIS,
AnnaBridge 156:ff21514d8981 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
AnnaBridge 156:ff21514d8981 13 * See the License for the specific language governing permissions and
AnnaBridge 156:ff21514d8981 14 * limitations under the License.
AnnaBridge 156:ff21514d8981 15 */
AnnaBridge 156:ff21514d8981 16
AnnaBridge 156:ff21514d8981 17 #ifndef MBED_MBED_RTX_H
AnnaBridge 156:ff21514d8981 18 #define MBED_MBED_RTX_H
AnnaBridge 156:ff21514d8981 19
AnnaBridge 170:e95d10626187 20 #include <stdint.h>
AnnaBridge 170:e95d10626187 21
AnnaBridge 156:ff21514d8981 22 #if defined(TARGET_LPC11U68)
AnnaBridge 156:ff21514d8981 23
AnnaBridge 156:ff21514d8981 24 #ifndef INITIAL_SP
AnnaBridge 156:ff21514d8981 25 #define INITIAL_SP (0x10008000UL)
AnnaBridge 156:ff21514d8981 26 #endif
AnnaBridge 156:ff21514d8981 27
AnnaBridge 156:ff21514d8981 28 #elif defined(TARGET_LPC11U24) \
AnnaBridge 167:84c0a372a020 29 || defined(TARGET_LPC11CXX) \
AnnaBridge 156:ff21514d8981 30 || defined(TARGET_LPC11U35_401) \
AnnaBridge 156:ff21514d8981 31 || defined(TARGET_LPC11U35_501) \
AnnaBridge 156:ff21514d8981 32 || defined(TARGET_LPCCAPPUCCINO)
AnnaBridge 156:ff21514d8981 33
AnnaBridge 156:ff21514d8981 34 #ifndef INITIAL_SP
AnnaBridge 156:ff21514d8981 35 #define INITIAL_SP (0x10002000UL)
AnnaBridge 156:ff21514d8981 36 #endif
AnnaBridge 156:ff21514d8981 37
AnnaBridge 156:ff21514d8981 38 #elif defined(TARGET_LPC1114)
AnnaBridge 156:ff21514d8981 39
AnnaBridge 156:ff21514d8981 40 #ifndef INITIAL_SP
AnnaBridge 156:ff21514d8981 41 #define INITIAL_SP (0x10001000UL)
AnnaBridge 156:ff21514d8981 42 #endif
AnnaBridge 156:ff21514d8981 43
AnnaBridge 156:ff21514d8981 44 #elif defined(TARGET_LPC1347)
AnnaBridge 156:ff21514d8981 45
AnnaBridge 156:ff21514d8981 46 #ifndef INITIAL_SP
AnnaBridge 156:ff21514d8981 47 #define INITIAL_SP (0x10002000UL)
AnnaBridge 156:ff21514d8981 48 #endif
AnnaBridge 156:ff21514d8981 49
AnnaBridge 156:ff21514d8981 50 #elif defined(TARGET_LPC1549)
AnnaBridge 156:ff21514d8981 51
AnnaBridge 156:ff21514d8981 52 #ifndef INITIAL_SP
AnnaBridge 156:ff21514d8981 53 #define INITIAL_SP (0x02009000UL)
AnnaBridge 156:ff21514d8981 54 #endif
AnnaBridge 156:ff21514d8981 55
AnnaBridge 157:e7ca05fa8600 56 #elif defined(TARGET_LPC1768) || defined(TARGET_LPC1769)
AnnaBridge 156:ff21514d8981 57
AnnaBridge 156:ff21514d8981 58 #ifndef INITIAL_SP
AnnaBridge 156:ff21514d8981 59 #define INITIAL_SP (0x10008000UL)
AnnaBridge 156:ff21514d8981 60 #endif
AnnaBridge 156:ff21514d8981 61
AnnaBridge 156:ff21514d8981 62 #elif defined(TARGET_LPC4088) || defined(TARGET_LPC4088_DM)
AnnaBridge 156:ff21514d8981 63
AnnaBridge 156:ff21514d8981 64 #ifndef INITIAL_SP
AnnaBridge 156:ff21514d8981 65 #define INITIAL_SP (0x10010000UL)
AnnaBridge 156:ff21514d8981 66 #endif
AnnaBridge 156:ff21514d8981 67
AnnaBridge 156:ff21514d8981 68 #elif defined(TARGET_LPC4330) || defined(TARGET_LPC4337)
AnnaBridge 156:ff21514d8981 69
AnnaBridge 156:ff21514d8981 70 #ifndef INITIAL_SP
AnnaBridge 156:ff21514d8981 71 #define INITIAL_SP (0x10008000UL)
AnnaBridge 156:ff21514d8981 72 #endif
AnnaBridge 156:ff21514d8981 73
AnnaBridge 156:ff21514d8981 74 #elif defined(TARGET_LPC812)
AnnaBridge 156:ff21514d8981 75
AnnaBridge 156:ff21514d8981 76 #ifndef INITIAL_SP
AnnaBridge 156:ff21514d8981 77 #define INITIAL_SP (0x10001000UL)
AnnaBridge 156:ff21514d8981 78 #endif
AnnaBridge 156:ff21514d8981 79
AnnaBridge 156:ff21514d8981 80 #elif defined(TARGET_LPC824) || defined(TARGET_SSCI824)
AnnaBridge 156:ff21514d8981 81
AnnaBridge 156:ff21514d8981 82 #ifndef INITIAL_SP
AnnaBridge 156:ff21514d8981 83 #define INITIAL_SP (0x10002000UL)
AnnaBridge 156:ff21514d8981 84 #endif
AnnaBridge 156:ff21514d8981 85
AnnaBridge 156:ff21514d8981 86 #elif defined(TARGET_LPC54114_M4)
AnnaBridge 156:ff21514d8981 87
AnnaBridge 156:ff21514d8981 88 #ifndef INITIAL_SP
AnnaBridge 156:ff21514d8981 89 #define INITIAL_SP (0x20010000UL)
AnnaBridge 156:ff21514d8981 90 #endif
AnnaBridge 156:ff21514d8981 91
AnnaBridge 156:ff21514d8981 92 #elif defined(TARGET_LPC546XX)
AnnaBridge 156:ff21514d8981 93
AnnaBridge 156:ff21514d8981 94 #ifndef INITIAL_SP
AnnaBridge 156:ff21514d8981 95 #define INITIAL_SP (0x20028000UL)
AnnaBridge 156:ff21514d8981 96 #endif
AnnaBridge 156:ff21514d8981 97
AnnaBridge 170:e95d10626187 98 #elif defined(TARGET_MIMXRT1050_EVK)
AnnaBridge 161:aa5281ff4a02 99
AnnaBridge 170:e95d10626187 100 #if defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
AnnaBridge 170:e95d10626187 101 extern uint32_t Image$$RW_IRAM1$$ZI$$Base[];
AnnaBridge 170:e95d10626187 102 extern uint32_t Image$$RW_IRAM1$$ZI$$Length[];
AnnaBridge 170:e95d10626187 103 extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Base[];
AnnaBridge 170:e95d10626187 104 extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Length[];
AnnaBridge 170:e95d10626187 105 #define HEAP_START ((unsigned char*) Image$$RW_IRAM1$$ZI$$Base)
AnnaBridge 170:e95d10626187 106 #define HEAP_SIZE ((uint32_t) Image$$RW_IRAM1$$ZI$$Length)
AnnaBridge 170:e95d10626187 107 #define ISR_STACK_START ((unsigned char*)Image$$ARM_LIB_STACK$$ZI$$Base)
AnnaBridge 170:e95d10626187 108 #define ISR_STACK_SIZE ((uint32_t)Image$$ARM_LIB_STACK$$ZI$$Length)
AnnaBridge 170:e95d10626187 109 #elif defined(__GNUC__)
AnnaBridge 170:e95d10626187 110 extern uint32_t __StackTop[];
AnnaBridge 170:e95d10626187 111 extern uint32_t __StackLimit[];
AnnaBridge 170:e95d10626187 112 extern uint32_t __end__;
AnnaBridge 170:e95d10626187 113 extern uint32_t __HeapLimit[];
AnnaBridge 170:e95d10626187 114 #define HEAP_START ((unsigned char*)&__end__)
AnnaBridge 170:e95d10626187 115 #define HEAP_SIZE ((uint32_t)((uint32_t)__HeapLimit - (uint32_t)HEAP_START))
AnnaBridge 170:e95d10626187 116 #define ISR_STACK_START ((unsigned char*)__StackLimit)
AnnaBridge 170:e95d10626187 117 #define ISR_STACK_SIZE ((uint32_t)((uint32_t)__StackTop - (uint32_t)__StackLimit))
AnnaBridge 170:e95d10626187 118 #elif defined(__ICCARM__)
AnnaBridge 170:e95d10626187 119 /* No region declarations needed */
AnnaBridge 170:e95d10626187 120 #else
AnnaBridge 170:e95d10626187 121 #error "no toolchain defined"
AnnaBridge 161:aa5281ff4a02 122 #endif
AnnaBridge 161:aa5281ff4a02 123
AnnaBridge 156:ff21514d8981 124 #endif
AnnaBridge 156:ff21514d8981 125
AnnaBridge 156:ff21514d8981 126 #endif // MBED_MBED_RTX_H