test

Committer:
elijahsj
Date:
Mon Nov 09 00:33:19 2020 -0500
Revision:
2:4364577b5ad8
Parent:
1:8a094db1347f
copied mbed library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
elijahsj 1:8a094db1347f 1 /* mbed Microcontroller Library
elijahsj 1:8a094db1347f 2 * Copyright (c) 2017 ARM Limited
elijahsj 1:8a094db1347f 3 *
elijahsj 1:8a094db1347f 4 * Licensed under the Apache License, Version 2.0 (the "License");
elijahsj 1:8a094db1347f 5 * you may not use this file except in compliance with the License.
elijahsj 1:8a094db1347f 6 * You may obtain a copy of the License at
elijahsj 1:8a094db1347f 7 *
elijahsj 1:8a094db1347f 8 * http://www.apache.org/licenses/LICENSE-2.0
elijahsj 1:8a094db1347f 9 *
elijahsj 1:8a094db1347f 10 * Unless required by applicable law or agreed to in writing, software
elijahsj 1:8a094db1347f 11 * distributed under the License is distributed on an "AS IS" BASIS,
elijahsj 1:8a094db1347f 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
elijahsj 1:8a094db1347f 13 * See the License for the specific language governing permissions and
elijahsj 1:8a094db1347f 14 * limitations under the License.
elijahsj 1:8a094db1347f 15 */
elijahsj 1:8a094db1347f 16
elijahsj 1:8a094db1347f 17 #ifndef MBED_MBED_RTX_H
elijahsj 1:8a094db1347f 18 #define MBED_MBED_RTX_H
elijahsj 1:8a094db1347f 19
elijahsj 1:8a094db1347f 20 #ifndef INITIAL_SP
elijahsj 1:8a094db1347f 21
elijahsj 1:8a094db1347f 22 #if (defined(TARGET_STM32F051R8) ||\
elijahsj 1:8a094db1347f 23 defined(TARGET_STM32F100RB) ||\
elijahsj 1:8a094db1347f 24 defined(TARGET_STM32L031K6) ||\
elijahsj 1:8a094db1347f 25 defined(TARGET_STM32L053C8) ||\
elijahsj 1:8a094db1347f 26 defined(TARGET_STM32L053R8))
elijahsj 1:8a094db1347f 27 #define INITIAL_SP (0x20002000UL)
elijahsj 1:8a094db1347f 28
elijahsj 1:8a094db1347f 29 #elif (defined(TARGET_STM32F303K8) ||\
elijahsj 1:8a094db1347f 30 defined(TARGET_STM32F334C8) ||\
elijahsj 1:8a094db1347f 31 defined(TARGET_STM32F334R8))
elijahsj 1:8a094db1347f 32 #define INITIAL_SP (0x20003000UL)
elijahsj 1:8a094db1347f 33
elijahsj 1:8a094db1347f 34 #elif (defined(TARGET_STM32F070RB) ||\
elijahsj 1:8a094db1347f 35 defined(TARGET_STM32F072RB) ||\
elijahsj 1:8a094db1347f 36 defined(TARGET_STM32F302R8))
elijahsj 1:8a094db1347f 37 #define INITIAL_SP (0x20004000UL)
elijahsj 1:8a094db1347f 38
elijahsj 1:8a094db1347f 39 #elif (defined(TARGET_STM32F103RB) ||\
elijahsj 1:8a094db1347f 40 defined(TARGET_STM32F103C8) ||\
elijahsj 1:8a094db1347f 41 defined(TARGET_STM32L072CZ) ||\
elijahsj 1:8a094db1347f 42 defined(TARGET_STM32L073RZ))
elijahsj 1:8a094db1347f 43 #define INITIAL_SP (0x20005000UL)
elijahsj 1:8a094db1347f 44
elijahsj 1:8a094db1347f 45 #elif (defined(TARGET_STM32F091RC) ||\
elijahsj 1:8a094db1347f 46 defined(TARGET_STM32F410RB) ||\
elijahsj 1:8a094db1347f 47 defined(TARGET_STM32L151CC) ||\
elijahsj 1:8a094db1347f 48 defined(TARGET_STM32L151RC) ||\
elijahsj 1:8a094db1347f 49 defined(TARGET_STM32L152RC))
elijahsj 1:8a094db1347f 50 #define INITIAL_SP (0x20008000UL)
elijahsj 1:8a094db1347f 51
elijahsj 1:8a094db1347f 52 #elif defined(TARGET_STM32F303VC)
elijahsj 1:8a094db1347f 53 #define INITIAL_SP (0x2000A000UL)
elijahsj 1:8a094db1347f 54
elijahsj 1:8a094db1347f 55 #elif defined(TARGET_STM32L432KC)
elijahsj 1:8a094db1347f 56 #define INITIAL_SP (0x20010000UL)
elijahsj 1:8a094db1347f 57
elijahsj 1:8a094db1347f 58 #elif (defined(TARGET_STM32F303RE) ||\
elijahsj 1:8a094db1347f 59 defined(TARGET_STM32F303ZE) ||\
elijahsj 1:8a094db1347f 60 defined(TARGET_STM32F401VC))
elijahsj 1:8a094db1347f 61 #define INITIAL_SP (0x20010000UL)
elijahsj 1:8a094db1347f 62
elijahsj 1:8a094db1347f 63 #elif defined(TARGET_STM32L152RE)
elijahsj 1:8a094db1347f 64 #define INITIAL_SP (0x20014000UL)
elijahsj 1:8a094db1347f 65
elijahsj 1:8a094db1347f 66 #elif (defined(TARGET_STM32F401RE) ||\
elijahsj 1:8a094db1347f 67 defined(TARGET_STM32L475VG) ||\
elijahsj 1:8a094db1347f 68 defined(TARGET_STM32L476RG) ||\
elijahsj 1:8a094db1347f 69 defined(TARGET_STM32L476VG) ||\
elijahsj 1:8a094db1347f 70 defined(TARGET_STM32L486RG))
elijahsj 1:8a094db1347f 71 #define INITIAL_SP (0x20018000UL)
elijahsj 1:8a094db1347f 72
elijahsj 1:8a094db1347f 73 #elif (defined(TARGET_STM32F207ZG) ||\
elijahsj 1:8a094db1347f 74 defined(TARGET_STM32F405RG) ||\
elijahsj 1:8a094db1347f 75 defined(TARGET_STM32F407VG) ||\
elijahsj 1:8a094db1347f 76 defined(TARGET_STM32F411RE) ||\
elijahsj 1:8a094db1347f 77 defined(TARGET_STM32F446RE) ||\
elijahsj 1:8a094db1347f 78 defined(TARGET_STM32F446VE) ||\
elijahsj 1:8a094db1347f 79 defined(TARGET_STM32F446ZE))
elijahsj 1:8a094db1347f 80 #define INITIAL_SP (0x20020000UL)
elijahsj 1:8a094db1347f 81
elijahsj 1:8a094db1347f 82 #elif (defined(TARGET_STM32F429ZI) ||\
elijahsj 1:8a094db1347f 83 defined(TARGET_STM32F437VG) ||\
elijahsj 1:8a094db1347f 84 defined(TARGET_STM32F439ZI))
elijahsj 1:8a094db1347f 85 #define INITIAL_SP (0x20030000UL)
elijahsj 1:8a094db1347f 86
elijahsj 1:8a094db1347f 87 #elif defined(TARGET_STM32F412ZG)
elijahsj 1:8a094db1347f 88 #define INITIAL_SP (0x20040000UL)
elijahsj 1:8a094db1347f 89
elijahsj 1:8a094db1347f 90 #elif (defined(TARGET_STM32F413ZH) ||\
elijahsj 1:8a094db1347f 91 defined(TARGET_STM32F469NI) ||\
elijahsj 1:8a094db1347f 92 defined(TARGET_STM32F746NG) ||\
elijahsj 1:8a094db1347f 93 defined(TARGET_STM32F746ZG) ||\
elijahsj 1:8a094db1347f 94 defined(TARGET_STM32F756ZG))
elijahsj 1:8a094db1347f 95 #define INITIAL_SP (0x20050000UL)
elijahsj 1:8a094db1347f 96
elijahsj 1:8a094db1347f 97 #elif (defined(TARGET_STM32F767ZI) ||\
elijahsj 1:8a094db1347f 98 defined(TARGET_STM32F769NI))
elijahsj 1:8a094db1347f 99 #define INITIAL_SP (0x20080000UL)
elijahsj 1:8a094db1347f 100
elijahsj 1:8a094db1347f 101 #else
elijahsj 1:8a094db1347f 102 #error "INITIAL_SP is not defined for this target in the mbed_rtx.h file"
elijahsj 1:8a094db1347f 103 #endif
elijahsj 1:8a094db1347f 104
elijahsj 1:8a094db1347f 105 #endif // INITIAL_SP
elijahsj 1:8a094db1347f 106
elijahsj 1:8a094db1347f 107 #endif // MBED_MBED_RTX_H