2017-07-25 09:25:04 +00:00
|
|
|
/* mbed Microcontroller Library
|
|
|
|
* Copyright (c) 2016 ARM Limited
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
|
2017-12-14 11:27:11 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2019-02-05 08:10:15 +00:00
|
|
|
#if defined(TARGET_RENESAS)
|
2017-12-14 11:27:11 +00:00
|
|
|
|
2019-02-07 16:09:34 +00:00
|
|
|
#if defined(__ARMCC_VERSION)
|
|
|
|
extern uint32_t Image$$ARM_LIB_STACK$$Base[];
|
|
|
|
extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Limit[];
|
|
|
|
extern uint32_t Image$$ARM_LIB_HEAP$$Base[];
|
|
|
|
#define INITIAL_SP Image$$ARM_LIB_STACK$$ZI$$Limit
|
|
|
|
#define HEAP_START Image$$ARM_LIB_HEAP$$Base
|
2019-02-10 23:17:17 +00:00
|
|
|
#define HEAP_SIZE (uint32_t)((uint32_t) Image$$ARM_LIB_STACK$$Base - (uint32_t) HEAP_START)
|
2017-12-14 11:27:11 +00:00
|
|
|
#elif defined(__GNUC__)
|
|
|
|
#define INITIAL_SP (&__StackTop)
|
|
|
|
#elif defined(__ICCARM__)
|
|
|
|
/* No region declarations needed */
|
|
|
|
#else
|
|
|
|
#error "no toolchain defined"
|
|
|
|
#endif
|
2019-02-05 08:10:15 +00:00
|
|
|
|
2018-01-16 04:39:44 +00:00
|
|
|
#endif
|
2017-12-14 11:27:11 +00:00
|
|
|
|
|
|
|
#endif // MBED_MBED_RTX_H
|