2016-08-30 15:40:31 +00:00
|
|
|
/* mbed Microcontroller Library
|
2017-07-03 09:16:35 +00:00
|
|
|
* Copyright (c) 2017 ARM Limited
|
2016-08-30 15:40:31 +00:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MBED_MBED_RTX_H
|
|
|
|
#define MBED_MBED_RTX_H
|
|
|
|
|
|
|
|
#ifndef INITIAL_SP
|
|
|
|
|
2017-07-03 09:16:35 +00:00
|
|
|
#if (defined(TARGET_STM32F051R8) ||\
|
|
|
|
defined(TARGET_STM32F100RB) ||\
|
|
|
|
defined(TARGET_STM32L031K6) ||\
|
|
|
|
defined(TARGET_STM32L053C8) ||\
|
|
|
|
defined(TARGET_STM32L053R8))
|
2016-08-30 15:40:31 +00:00
|
|
|
#define INITIAL_SP (0x20002000UL)
|
|
|
|
|
2017-07-03 09:16:35 +00:00
|
|
|
#elif (defined(TARGET_STM32F303K8) ||\
|
|
|
|
defined(TARGET_STM32F334C8) ||\
|
|
|
|
defined(TARGET_STM32F334R8))
|
|
|
|
#define INITIAL_SP (0x20003000UL)
|
2016-08-30 15:40:31 +00:00
|
|
|
|
2017-07-03 09:16:35 +00:00
|
|
|
#elif (defined(TARGET_STM32F070RB) ||\
|
|
|
|
defined(TARGET_STM32F072RB) ||\
|
|
|
|
defined(TARGET_STM32F302R8))
|
2016-08-30 15:40:31 +00:00
|
|
|
#define INITIAL_SP (0x20004000UL)
|
|
|
|
|
2017-07-03 09:16:35 +00:00
|
|
|
#elif (defined(TARGET_STM32F103RB) ||\
|
2017-08-13 13:32:11 +00:00
|
|
|
defined(TARGET_STM32F103C8) ||\
|
2017-07-03 09:16:35 +00:00
|
|
|
defined(TARGET_STM32L072CZ) ||\
|
2018-01-18 13:51:32 +00:00
|
|
|
defined(TARGET_STM32L073RZ) ||\
|
|
|
|
defined(TARGET_STM32L0x2xZ))
|
2016-08-30 15:40:31 +00:00
|
|
|
#define INITIAL_SP (0x20005000UL)
|
|
|
|
|
2017-07-03 09:16:35 +00:00
|
|
|
#elif (defined(TARGET_STM32F091RC) ||\
|
|
|
|
defined(TARGET_STM32F410RB) ||\
|
|
|
|
defined(TARGET_STM32L151CC) ||\
|
|
|
|
defined(TARGET_STM32L151RC) ||\
|
|
|
|
defined(TARGET_STM32L152RC))
|
|
|
|
#define INITIAL_SP (0x20008000UL)
|
2016-08-30 15:40:31 +00:00
|
|
|
|
|
|
|
#elif defined(TARGET_STM32F303VC)
|
|
|
|
#define INITIAL_SP (0x2000A000UL)
|
|
|
|
|
2018-01-17 12:27:31 +00:00
|
|
|
#elif defined(TARGET_STM32L443RC)
|
|
|
|
#define INITIAL_SP (0x2000C000UL)
|
|
|
|
|
2017-11-27 14:15:17 +00:00
|
|
|
#elif defined(TARGET_STM32L432KC) ||\
|
|
|
|
defined (TARGET_STM32L433RC)
|
2017-08-07 13:41:58 +00:00
|
|
|
#define INITIAL_SP (0x20010000UL)
|
2016-08-30 15:40:31 +00:00
|
|
|
|
2017-07-03 09:16:35 +00:00
|
|
|
#elif (defined(TARGET_STM32F303RE) ||\
|
|
|
|
defined(TARGET_STM32F303ZE) ||\
|
|
|
|
defined(TARGET_STM32F401VC))
|
2016-08-30 15:40:31 +00:00
|
|
|
#define INITIAL_SP (0x20010000UL)
|
|
|
|
|
2017-07-03 09:16:35 +00:00
|
|
|
#elif defined(TARGET_STM32L152RE)
|
|
|
|
#define INITIAL_SP (0x20014000UL)
|
2016-08-30 15:40:31 +00:00
|
|
|
|
2017-07-03 09:16:35 +00:00
|
|
|
#elif (defined(TARGET_STM32F401RE) ||\
|
|
|
|
defined(TARGET_STM32L475VG) ||\
|
|
|
|
defined(TARGET_STM32L476RG) ||\
|
2017-09-13 14:15:46 +00:00
|
|
|
defined(TARGET_STM32L476JG) ||\
|
2017-07-03 09:16:35 +00:00
|
|
|
defined(TARGET_STM32L476VG) ||\
|
|
|
|
defined(TARGET_STM32L486RG))
|
2016-09-28 19:57:46 +00:00
|
|
|
#define INITIAL_SP (0x20018000UL)
|
2016-08-30 15:40:31 +00:00
|
|
|
|
2017-07-03 09:16:35 +00:00
|
|
|
#elif (defined(TARGET_STM32F207ZG) ||\
|
|
|
|
defined(TARGET_STM32F405RG) ||\
|
|
|
|
defined(TARGET_STM32F407VG) ||\
|
|
|
|
defined(TARGET_STM32F411RE) ||\
|
|
|
|
defined(TARGET_STM32F446RE) ||\
|
|
|
|
defined(TARGET_STM32F446VE) ||\
|
|
|
|
defined(TARGET_STM32F446ZE))
|
2016-09-28 19:57:46 +00:00
|
|
|
#define INITIAL_SP (0x20020000UL)
|
2016-08-30 15:40:31 +00:00
|
|
|
|
2017-07-03 09:16:35 +00:00
|
|
|
#elif (defined(TARGET_STM32F429ZI) ||\
|
|
|
|
defined(TARGET_STM32F437VG) ||\
|
|
|
|
defined(TARGET_STM32F439ZI))
|
|
|
|
#define INITIAL_SP (0x20030000UL)
|
2016-08-30 15:40:31 +00:00
|
|
|
|
2016-12-02 14:16:05 +00:00
|
|
|
#elif defined(TARGET_STM32F412ZG)
|
|
|
|
#define INITIAL_SP (0x20040000UL)
|
|
|
|
|
2017-07-03 09:16:35 +00:00
|
|
|
#elif (defined(TARGET_STM32F413ZH) ||\
|
|
|
|
defined(TARGET_STM32F469NI) ||\
|
|
|
|
defined(TARGET_STM32F746NG) ||\
|
|
|
|
defined(TARGET_STM32F746ZG) ||\
|
2017-06-27 11:51:42 +00:00
|
|
|
defined(TARGET_STM32F756ZG) ||\
|
|
|
|
defined(TARGET_STM32L496ZG))
|
2017-05-10 13:02:27 +00:00
|
|
|
#define INITIAL_SP (0x20050000UL)
|
2016-08-30 15:40:31 +00:00
|
|
|
|
2017-07-03 09:16:35 +00:00
|
|
|
#elif (defined(TARGET_STM32F767ZI) ||\
|
|
|
|
defined(TARGET_STM32F769NI))
|
2016-08-30 15:40:31 +00:00
|
|
|
#define INITIAL_SP (0x20080000UL)
|
|
|
|
|
2017-07-03 09:16:35 +00:00
|
|
|
#else
|
|
|
|
#error "INITIAL_SP is not defined for this target in the mbed_rtx.h file"
|
2016-08-30 15:40:31 +00:00
|
|
|
#endif
|
|
|
|
|
2017-07-03 09:16:35 +00:00
|
|
|
#endif // INITIAL_SP
|
2016-08-30 15:40:31 +00:00
|
|
|
|
|
|
|
#endif // MBED_MBED_RTX_H
|