test

Fork of mbed-dev by mbed official

Committer:
AnnaBridge
Date:
Wed Jun 21 17:46:44 2017 +0100
Revision:
168:e84263d55307
Child:
174:e131a1973e81
This updates the lib to the mbed lib v 145

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 168:e84263d55307 1 /* mbed Microcontroller Library
AnnaBridge 168:e84263d55307 2 * Copyright (c) 2013-2016 Realtek Semiconductor Corp.
AnnaBridge 168:e84263d55307 3 *
AnnaBridge 168:e84263d55307 4 * Licensed under the Apache License, Version 2.0 (the "License");
AnnaBridge 168:e84263d55307 5 * you may not use this file except in compliance with the License.
AnnaBridge 168:e84263d55307 6 * You may obtain a copy of the License at
AnnaBridge 168:e84263d55307 7 *
AnnaBridge 168:e84263d55307 8 * http://www.apache.org/licenses/LICENSE-2.0
AnnaBridge 168:e84263d55307 9 *
AnnaBridge 168:e84263d55307 10 * Unless required by applicable law or agreed to in writing, software
AnnaBridge 168:e84263d55307 11 * distributed under the License is distributed on an "AS IS" BASIS,
AnnaBridge 168:e84263d55307 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
AnnaBridge 168:e84263d55307 13 * See the License for the specific language governing permissions and
AnnaBridge 168:e84263d55307 14 * limitations under the License.
AnnaBridge 168:e84263d55307 15 */
AnnaBridge 168:e84263d55307 16 #ifndef MBED_MBED_RTX_H
AnnaBridge 168:e84263d55307 17 #define MBED_MBED_RTX_H
AnnaBridge 168:e84263d55307 18
AnnaBridge 168:e84263d55307 19 #if defined(TARGET_RTL8195A)
AnnaBridge 168:e84263d55307 20
AnnaBridge 168:e84263d55307 21 #include "rtl8195a.h"
AnnaBridge 168:e84263d55307 22
AnnaBridge 168:e84263d55307 23 #if defined(__CC_ARM)
AnnaBridge 168:e84263d55307 24 #ifdef CONFIG_RTL8195A
AnnaBridge 168:e84263d55307 25 #define INITIAL_SP 0x10070000
AnnaBridge 168:e84263d55307 26 #define ISR_STACK_START 0x1FFFEFFC
AnnaBridge 168:e84263d55307 27 #else
AnnaBridge 168:e84263d55307 28 #ERROR "NOT SUPPORT NOW"
AnnaBridge 168:e84263d55307 29 #endif
AnnaBridge 168:e84263d55307 30 #elif defined(__GNUC__)
AnnaBridge 168:e84263d55307 31 extern uint32_t __StackTop[];
AnnaBridge 168:e84263d55307 32 extern uint32_t __StackLimit[];
AnnaBridge 168:e84263d55307 33 // extern uint32_t __end__[];
AnnaBridge 168:e84263d55307 34 extern uint32_t __HeapLimit[];
AnnaBridge 168:e84263d55307 35 #define INITIAL_SP (__StackTop)
AnnaBridge 168:e84263d55307 36 #endif
AnnaBridge 168:e84263d55307 37
AnnaBridge 168:e84263d55307 38
AnnaBridge 168:e84263d55307 39 #if defined(__CC_ARM) || defined(__GNUC__)
AnnaBridge 168:e84263d55307 40 #ifndef ISR_STACK_SIZE
AnnaBridge 168:e84263d55307 41 #define ISR_STACK_SIZE (0x1000)
AnnaBridge 168:e84263d55307 42 #endif
AnnaBridge 168:e84263d55307 43 #endif
AnnaBridge 168:e84263d55307 44
AnnaBridge 168:e84263d55307 45 #ifndef OS_TASKCNT
AnnaBridge 168:e84263d55307 46 #define OS_TASKCNT 14
AnnaBridge 168:e84263d55307 47 #endif
AnnaBridge 168:e84263d55307 48 #ifndef OS_MAINSTKSIZE
AnnaBridge 168:e84263d55307 49 #define OS_MAINSTKSIZE 256
AnnaBridge 168:e84263d55307 50 #endif
AnnaBridge 168:e84263d55307 51 #ifndef OS_CLOCK
AnnaBridge 168:e84263d55307 52 #define OS_CLOCK PLATFORM_CLK
AnnaBridge 168:e84263d55307 53 #endif
AnnaBridge 168:e84263d55307 54
AnnaBridge 168:e84263d55307 55 #endif
AnnaBridge 168:e84263d55307 56 #endif
AnnaBridge 168:e84263d55307 57