mbed-os

Dependents:   cobaLCDJoyMotor_Thread odometry_omni_3roda_v3 odometry_omni_3roda_v1 odometry_omni_3roda_v2 ... more

Committer:
be_bryan
Date:
Mon Dec 11 17:54:04 2017 +0000
Revision:
0:b74591d5ab33
motor ++

Who changed what in which revision?

UserRevisionLine numberNew contents of line
be_bryan 0:b74591d5ab33 1 /* mbed Microcontroller Library
be_bryan 0:b74591d5ab33 2 * Copyright (c) 2013-2016 Realtek Semiconductor Corp.
be_bryan 0:b74591d5ab33 3 *
be_bryan 0:b74591d5ab33 4 * Licensed under the Apache License, Version 2.0 (the "License");
be_bryan 0:b74591d5ab33 5 * you may not use this file except in compliance with the License.
be_bryan 0:b74591d5ab33 6 * You may obtain a copy of the License at
be_bryan 0:b74591d5ab33 7 *
be_bryan 0:b74591d5ab33 8 * http://www.apache.org/licenses/LICENSE-2.0
be_bryan 0:b74591d5ab33 9 *
be_bryan 0:b74591d5ab33 10 * Unless required by applicable law or agreed to in writing, software
be_bryan 0:b74591d5ab33 11 * distributed under the License is distributed on an "AS IS" BASIS,
be_bryan 0:b74591d5ab33 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
be_bryan 0:b74591d5ab33 13 * See the License for the specific language governing permissions and
be_bryan 0:b74591d5ab33 14 * limitations under the License.
be_bryan 0:b74591d5ab33 15 */
be_bryan 0:b74591d5ab33 16 #ifndef MBED_MBED_RTX_H
be_bryan 0:b74591d5ab33 17 #define MBED_MBED_RTX_H
be_bryan 0:b74591d5ab33 18
be_bryan 0:b74591d5ab33 19 #if defined(TARGET_RTL8195A)
be_bryan 0:b74591d5ab33 20
be_bryan 0:b74591d5ab33 21 #include "rtl8195a.h"
be_bryan 0:b74591d5ab33 22
be_bryan 0:b74591d5ab33 23 #if defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
be_bryan 0:b74591d5ab33 24 extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Base[];
be_bryan 0:b74591d5ab33 25 extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Length[];
be_bryan 0:b74591d5ab33 26 #define ISR_STACK_START (unsigned char *)(Image$$ARM_LIB_STACK$$ZI$$Base)
be_bryan 0:b74591d5ab33 27 #define ISR_STACK_SIZE (uint32_t)(Image$$ARM_LIB_STACK$$ZI$$Length)
be_bryan 0:b74591d5ab33 28 #define INITIAL_SP (uint32_t)(Image$$ARM_LIB_STACK$$ZI$$Base)
be_bryan 0:b74591d5ab33 29 #elif defined(__GNUC__)
be_bryan 0:b74591d5ab33 30 extern uint32_t __StackTop[];
be_bryan 0:b74591d5ab33 31 extern uint32_t __StackLimit[];
be_bryan 0:b74591d5ab33 32 extern uint32_t __HeapLimit[];
be_bryan 0:b74591d5ab33 33 #define INITIAL_SP (__StackTop)
be_bryan 0:b74591d5ab33 34 #endif
be_bryan 0:b74591d5ab33 35
be_bryan 0:b74591d5ab33 36 #if defined(__GNUC__)
be_bryan 0:b74591d5ab33 37 #ifndef ISR_STACK_SIZE
be_bryan 0:b74591d5ab33 38 #define ISR_STACK_SIZE (0x1000)
be_bryan 0:b74591d5ab33 39 #endif
be_bryan 0:b74591d5ab33 40 #endif
be_bryan 0:b74591d5ab33 41
be_bryan 0:b74591d5ab33 42 #endif
be_bryan 0:b74591d5ab33 43 #endif