mbed
Fork of mbed-dev by
targets/TARGET_STM/mbed_rtx.h@181:96ed750bd169, 2018-01-17 (annotated)
- Committer:
- Anna Bridge
- Date:
- Wed Jan 17 15:23:54 2018 +0000
- Revision:
- 181:96ed750bd169
- Parent:
- 178:d650f5d4c87a
- Child:
- 182:57724642e740
mbed-dev libray. Release version 158
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 149:156823d33999 | 1 | /* mbed Microcontroller Library |
Kojto | 171:19eb464bc2be | 2 | * Copyright (c) 2017 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 | |
<> | 149:156823d33999 | 20 | #ifndef INITIAL_SP |
<> | 149:156823d33999 | 21 | |
Kojto | 171:19eb464bc2be | 22 | #if (defined(TARGET_STM32F051R8) ||\ |
Kojto | 171:19eb464bc2be | 23 | defined(TARGET_STM32F100RB) ||\ |
Kojto | 171:19eb464bc2be | 24 | defined(TARGET_STM32L031K6) ||\ |
Kojto | 171:19eb464bc2be | 25 | defined(TARGET_STM32L053C8) ||\ |
Kojto | 171:19eb464bc2be | 26 | defined(TARGET_STM32L053R8)) |
Kojto | 171:19eb464bc2be | 27 | #define INITIAL_SP (0x20002000UL) |
<> | 149:156823d33999 | 28 | |
Kojto | 171:19eb464bc2be | 29 | #elif (defined(TARGET_STM32F303K8) ||\ |
Kojto | 171:19eb464bc2be | 30 | defined(TARGET_STM32F334C8) ||\ |
Kojto | 171:19eb464bc2be | 31 | defined(TARGET_STM32F334R8)) |
Kojto | 171:19eb464bc2be | 32 | #define INITIAL_SP (0x20003000UL) |
<> | 149:156823d33999 | 33 | |
Kojto | 171:19eb464bc2be | 34 | #elif (defined(TARGET_STM32F070RB) ||\ |
Kojto | 171:19eb464bc2be | 35 | defined(TARGET_STM32F072RB) ||\ |
Kojto | 171:19eb464bc2be | 36 | defined(TARGET_STM32F302R8)) |
Kojto | 171:19eb464bc2be | 37 | #define INITIAL_SP (0x20004000UL) |
<> | 149:156823d33999 | 38 | |
Kojto | 171:19eb464bc2be | 39 | #elif (defined(TARGET_STM32F103RB) ||\ |
AnnaBridge | 173:7d866c31b3c5 | 40 | defined(TARGET_STM32F103C8) ||\ |
Kojto | 171:19eb464bc2be | 41 | defined(TARGET_STM32L072CZ) ||\ |
Kojto | 171:19eb464bc2be | 42 | defined(TARGET_STM32L073RZ)) |
<> | 149:156823d33999 | 43 | #define INITIAL_SP (0x20005000UL) |
<> | 149:156823d33999 | 44 | |
Kojto | 171:19eb464bc2be | 45 | #elif (defined(TARGET_STM32F091RC) ||\ |
Kojto | 171:19eb464bc2be | 46 | defined(TARGET_STM32F410RB) ||\ |
Kojto | 171:19eb464bc2be | 47 | defined(TARGET_STM32L151CC) ||\ |
Kojto | 171:19eb464bc2be | 48 | defined(TARGET_STM32L151RC) ||\ |
Kojto | 171:19eb464bc2be | 49 | defined(TARGET_STM32L152RC)) |
Kojto | 171:19eb464bc2be | 50 | #define INITIAL_SP (0x20008000UL) |
<> | 149:156823d33999 | 51 | |
<> | 149:156823d33999 | 52 | #elif defined(TARGET_STM32F303VC) |
<> | 149:156823d33999 | 53 | #define INITIAL_SP (0x2000A000UL) |
<> | 149:156823d33999 | 54 | |
Anna Bridge |
181:96ed750bd169 | 55 | #elif defined(TARGET_STM32L432KC) ||\ |
Anna Bridge |
181:96ed750bd169 | 56 | defined (TARGET_STM32L433RC) |
AnnaBridge | 176:af195413fb11 | 57 | #define INITIAL_SP (0x20010000UL) |
<> | 149:156823d33999 | 58 | |
Kojto | 171:19eb464bc2be | 59 | #elif (defined(TARGET_STM32F303RE) ||\ |
Kojto | 171:19eb464bc2be | 60 | defined(TARGET_STM32F303ZE) ||\ |
Kojto | 171:19eb464bc2be | 61 | defined(TARGET_STM32F401VC)) |
Kojto | 171:19eb464bc2be | 62 | #define INITIAL_SP (0x20010000UL) |
<> | 149:156823d33999 | 63 | |
Kojto | 171:19eb464bc2be | 64 | #elif defined(TARGET_STM32L152RE) |
Kojto | 171:19eb464bc2be | 65 | #define INITIAL_SP (0x20014000UL) |
<> | 149:156823d33999 | 66 | |
Kojto | 171:19eb464bc2be | 67 | #elif (defined(TARGET_STM32F401RE) ||\ |
Kojto | 171:19eb464bc2be | 68 | defined(TARGET_STM32L475VG) ||\ |
Kojto | 171:19eb464bc2be | 69 | defined(TARGET_STM32L476RG) ||\ |
AnnaBridge | 177:447f873cad2f | 70 | defined(TARGET_STM32L476JG) ||\ |
Kojto | 171:19eb464bc2be | 71 | defined(TARGET_STM32L476VG) ||\ |
Kojto | 171:19eb464bc2be | 72 | defined(TARGET_STM32L486RG)) |
Kojto | 171:19eb464bc2be | 73 | #define INITIAL_SP (0x20018000UL) |
<> | 149:156823d33999 | 74 | |
Kojto | 171:19eb464bc2be | 75 | #elif (defined(TARGET_STM32F207ZG) ||\ |
Kojto | 171:19eb464bc2be | 76 | defined(TARGET_STM32F405RG) ||\ |
Kojto | 171:19eb464bc2be | 77 | defined(TARGET_STM32F407VG) ||\ |
Kojto | 171:19eb464bc2be | 78 | defined(TARGET_STM32F411RE) ||\ |
Kojto | 171:19eb464bc2be | 79 | defined(TARGET_STM32F446RE) ||\ |
Kojto | 171:19eb464bc2be | 80 | defined(TARGET_STM32F446VE) ||\ |
Kojto | 171:19eb464bc2be | 81 | defined(TARGET_STM32F446ZE)) |
Kojto | 171:19eb464bc2be | 82 | #define INITIAL_SP (0x20020000UL) |
<> | 149:156823d33999 | 83 | |
Kojto | 171:19eb464bc2be | 84 | #elif (defined(TARGET_STM32F429ZI) ||\ |
Kojto | 171:19eb464bc2be | 85 | defined(TARGET_STM32F437VG) ||\ |
Kojto | 171:19eb464bc2be | 86 | defined(TARGET_STM32F439ZI)) |
<> | 162:e13f6fdb2ac4 | 87 | #define INITIAL_SP (0x20030000UL) |
<> | 162:e13f6fdb2ac4 | 88 | |
Kojto | 171:19eb464bc2be | 89 | #elif defined(TARGET_STM32F412ZG) |
Kojto | 171:19eb464bc2be | 90 | #define INITIAL_SP (0x20040000UL) |
<> | 149:156823d33999 | 91 | |
Kojto | 171:19eb464bc2be | 92 | #elif (defined(TARGET_STM32F413ZH) ||\ |
Kojto | 171:19eb464bc2be | 93 | defined(TARGET_STM32F469NI) ||\ |
Kojto | 171:19eb464bc2be | 94 | defined(TARGET_STM32F746NG) ||\ |
Kojto | 171:19eb464bc2be | 95 | defined(TARGET_STM32F746ZG) ||\ |
AnnaBridge | 178:d650f5d4c87a | 96 | defined(TARGET_STM32F756ZG) ||\ |
AnnaBridge | 178:d650f5d4c87a | 97 | defined(TARGET_STM32L496ZG)) |
Kojto | 171:19eb464bc2be | 98 | #define INITIAL_SP (0x20050000UL) |
<> | 149:156823d33999 | 99 | |
Kojto | 171:19eb464bc2be | 100 | #elif (defined(TARGET_STM32F767ZI) ||\ |
Kojto | 171:19eb464bc2be | 101 | defined(TARGET_STM32F769NI)) |
Kojto | 171:19eb464bc2be | 102 | #define INITIAL_SP (0x20080000UL) |
<> | 149:156823d33999 | 103 | |
Kojto | 171:19eb464bc2be | 104 | #else |
Kojto | 171:19eb464bc2be | 105 | #error "INITIAL_SP is not defined for this target in the mbed_rtx.h file" |
<> | 149:156823d33999 | 106 | #endif |
<> | 149:156823d33999 | 107 | |
Kojto | 171:19eb464bc2be | 108 | #endif // INITIAL_SP |
<> | 149:156823d33999 | 109 | |
<> | 149:156823d33999 | 110 | #endif // MBED_MBED_RTX_H |