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:
Fri Feb 16 16:16:41 2018 +0000
Revision:
161:aa5281ff4a02
Parent:
160:5571c4ff569f
Child:
163:e59c8e839560
mbed library. Release version 159.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 156:ff21514d8981 1 /* mbed Microcontroller Library
AnnaBridge 156:ff21514d8981 2 * Copyright (c) 2017 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 156:ff21514d8981 20 #ifndef INITIAL_SP
AnnaBridge 156:ff21514d8981 21
AnnaBridge 156:ff21514d8981 22 #if (defined(TARGET_STM32F051R8) ||\
AnnaBridge 156:ff21514d8981 23 defined(TARGET_STM32F100RB) ||\
AnnaBridge 156:ff21514d8981 24 defined(TARGET_STM32L031K6) ||\
AnnaBridge 156:ff21514d8981 25 defined(TARGET_STM32L053C8) ||\
AnnaBridge 156:ff21514d8981 26 defined(TARGET_STM32L053R8))
AnnaBridge 156:ff21514d8981 27 #define INITIAL_SP (0x20002000UL)
AnnaBridge 156:ff21514d8981 28
AnnaBridge 156:ff21514d8981 29 #elif (defined(TARGET_STM32F303K8) ||\
AnnaBridge 156:ff21514d8981 30 defined(TARGET_STM32F334C8) ||\
AnnaBridge 156:ff21514d8981 31 defined(TARGET_STM32F334R8))
AnnaBridge 156:ff21514d8981 32 #define INITIAL_SP (0x20003000UL)
AnnaBridge 156:ff21514d8981 33
AnnaBridge 156:ff21514d8981 34 #elif (defined(TARGET_STM32F070RB) ||\
AnnaBridge 156:ff21514d8981 35 defined(TARGET_STM32F072RB) ||\
AnnaBridge 156:ff21514d8981 36 defined(TARGET_STM32F302R8))
AnnaBridge 156:ff21514d8981 37 #define INITIAL_SP (0x20004000UL)
AnnaBridge 156:ff21514d8981 38
AnnaBridge 156:ff21514d8981 39 #elif (defined(TARGET_STM32F103RB) ||\
AnnaBridge 156:ff21514d8981 40 defined(TARGET_STM32F103C8) ||\
AnnaBridge 156:ff21514d8981 41 defined(TARGET_STM32L072CZ) ||\
AnnaBridge 161:aa5281ff4a02 42 defined(TARGET_STM32L073RZ) ||\
AnnaBridge 161:aa5281ff4a02 43 defined(TARGET_STM32L0x2xZ))
AnnaBridge 156:ff21514d8981 44 #define INITIAL_SP (0x20005000UL)
AnnaBridge 156:ff21514d8981 45
AnnaBridge 156:ff21514d8981 46 #elif (defined(TARGET_STM32F091RC) ||\
AnnaBridge 156:ff21514d8981 47 defined(TARGET_STM32F410RB) ||\
AnnaBridge 156:ff21514d8981 48 defined(TARGET_STM32L151CC) ||\
AnnaBridge 156:ff21514d8981 49 defined(TARGET_STM32L151RC) ||\
AnnaBridge 156:ff21514d8981 50 defined(TARGET_STM32L152RC))
AnnaBridge 156:ff21514d8981 51 #define INITIAL_SP (0x20008000UL)
AnnaBridge 156:ff21514d8981 52
AnnaBridge 156:ff21514d8981 53 #elif defined(TARGET_STM32F303VC)
AnnaBridge 156:ff21514d8981 54 #define INITIAL_SP (0x2000A000UL)
AnnaBridge 156:ff21514d8981 55
AnnaBridge 161:aa5281ff4a02 56 #elif defined(TARGET_STM32L443RC)
AnnaBridge 161:aa5281ff4a02 57 #define INITIAL_SP (0x2000C000UL)
AnnaBridge 161:aa5281ff4a02 58
Anna Bridge 160:5571c4ff569f 59 #elif defined(TARGET_STM32L432KC) ||\
Anna Bridge 160:5571c4ff569f 60 defined (TARGET_STM32L433RC)
AnnaBridge 156:ff21514d8981 61 #define INITIAL_SP (0x20010000UL)
AnnaBridge 156:ff21514d8981 62
AnnaBridge 156:ff21514d8981 63 #elif (defined(TARGET_STM32F303RE) ||\
AnnaBridge 156:ff21514d8981 64 defined(TARGET_STM32F303ZE) ||\
AnnaBridge 156:ff21514d8981 65 defined(TARGET_STM32F401VC))
AnnaBridge 156:ff21514d8981 66 #define INITIAL_SP (0x20010000UL)
AnnaBridge 156:ff21514d8981 67
AnnaBridge 156:ff21514d8981 68 #elif defined(TARGET_STM32L152RE)
AnnaBridge 156:ff21514d8981 69 #define INITIAL_SP (0x20014000UL)
AnnaBridge 156:ff21514d8981 70
AnnaBridge 156:ff21514d8981 71 #elif (defined(TARGET_STM32F401RE) ||\
AnnaBridge 156:ff21514d8981 72 defined(TARGET_STM32L475VG) ||\
AnnaBridge 156:ff21514d8981 73 defined(TARGET_STM32L476RG) ||\
AnnaBridge 156:ff21514d8981 74 defined(TARGET_STM32L476JG) ||\
AnnaBridge 156:ff21514d8981 75 defined(TARGET_STM32L476VG) ||\
AnnaBridge 156:ff21514d8981 76 defined(TARGET_STM32L486RG))
AnnaBridge 156:ff21514d8981 77 #define INITIAL_SP (0x20018000UL)
AnnaBridge 156:ff21514d8981 78
AnnaBridge 156:ff21514d8981 79 #elif (defined(TARGET_STM32F207ZG) ||\
AnnaBridge 156:ff21514d8981 80 defined(TARGET_STM32F405RG) ||\
AnnaBridge 156:ff21514d8981 81 defined(TARGET_STM32F407VG) ||\
AnnaBridge 156:ff21514d8981 82 defined(TARGET_STM32F411RE) ||\
AnnaBridge 156:ff21514d8981 83 defined(TARGET_STM32F446RE) ||\
AnnaBridge 156:ff21514d8981 84 defined(TARGET_STM32F446VE) ||\
AnnaBridge 156:ff21514d8981 85 defined(TARGET_STM32F446ZE))
AnnaBridge 156:ff21514d8981 86 #define INITIAL_SP (0x20020000UL)
AnnaBridge 156:ff21514d8981 87
AnnaBridge 156:ff21514d8981 88 #elif (defined(TARGET_STM32F429ZI) ||\
AnnaBridge 156:ff21514d8981 89 defined(TARGET_STM32F437VG) ||\
AnnaBridge 156:ff21514d8981 90 defined(TARGET_STM32F439ZI))
AnnaBridge 156:ff21514d8981 91 #define INITIAL_SP (0x20030000UL)
AnnaBridge 156:ff21514d8981 92
AnnaBridge 156:ff21514d8981 93 #elif defined(TARGET_STM32F412ZG)
AnnaBridge 156:ff21514d8981 94 #define INITIAL_SP (0x20040000UL)
AnnaBridge 156:ff21514d8981 95
AnnaBridge 156:ff21514d8981 96 #elif (defined(TARGET_STM32F413ZH) ||\
AnnaBridge 156:ff21514d8981 97 defined(TARGET_STM32F469NI) ||\
AnnaBridge 156:ff21514d8981 98 defined(TARGET_STM32F746NG) ||\
AnnaBridge 156:ff21514d8981 99 defined(TARGET_STM32F746ZG) ||\
AnnaBridge 157:e7ca05fa8600 100 defined(TARGET_STM32F756ZG) ||\
AnnaBridge 157:e7ca05fa8600 101 defined(TARGET_STM32L496ZG))
AnnaBridge 156:ff21514d8981 102 #define INITIAL_SP (0x20050000UL)
AnnaBridge 156:ff21514d8981 103
AnnaBridge 156:ff21514d8981 104 #elif (defined(TARGET_STM32F767ZI) ||\
AnnaBridge 156:ff21514d8981 105 defined(TARGET_STM32F769NI))
AnnaBridge 156:ff21514d8981 106 #define INITIAL_SP (0x20080000UL)
AnnaBridge 156:ff21514d8981 107
AnnaBridge 156:ff21514d8981 108 #else
AnnaBridge 156:ff21514d8981 109 #error "INITIAL_SP is not defined for this target in the mbed_rtx.h file"
AnnaBridge 156:ff21514d8981 110 #endif
AnnaBridge 156:ff21514d8981 111
AnnaBridge 156:ff21514d8981 112 #endif // INITIAL_SP
AnnaBridge 156:ff21514d8981 113
AnnaBridge 156:ff21514d8981 114 #endif // MBED_MBED_RTX_H