1 /******************************************************************************
2  * Copyright (c) 2013-2016 Realtek Semiconductor Corp.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  ******************************************************************************/
16 #ifndef __PLATFORM_STDLIB_H__
17 #define __PLATFORM_STDLIB_H__
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #if defined(CONFIG_PLATFORM_8195A)+\
24 		defined(CONFIG_PLATFORM_8711B)+\
25 		defined(CONFIG_PLATFORM_8721D)+\
26 		defined(CONFIG_PLATFORM_8195BHP)+\
27 		defined(USE_STM322xG_EVAL)+\
28 		defined(USE_STM324xG_EVAL)+\
29 		defined(CONFIG_PLATFOMR_CUSTOMER_RTOS)+\
30 		defined(STM32F10X_XL) > 1
31 		#error "Cannot define two or more platform at one time"
32 #endif
33 
34 #if defined(CONFIG_PLATFORM_8195A)
35 	#include "platform_stdlib_rtl8195a.h"
36 #elif defined (CONFIG_PLATFORM_8711B)
37 	#include "platform_stdlib_rtl8711b.h"
38 #elif defined (CONFIG_PLATFORM_8721D)
39 	#include "platform_stdlib_rtl8721d.h"
40 #elif defined(CONFIG_PLATFORM_8195BHP)
41 	#include "platform_stdlib_rtl8195bhp.h"
42 #elif defined(USE_STM322xG_EVAL) || defined(USE_STM324xG_EVAL)  || defined(STM32F10X_XL)
43 	#include "platform_stdlib_stm32.h"
44 #elif defined(CONFIG_PLATFOMR_CUSTOMER_RTOS)
45 	#include "platform_stdlib_customer.h"
46 #elif defined (CONFIG_PLATFORM_8710C)
47 	#include "platform_stdlib_rtl8710c.h"
48 #else
49 	#error "Undefined Platform stdlib"
50 #endif
51 
52 
53 #if (CONFIG_PLATFORM_AMEBA_X == 0)
54 #ifndef CONFIG_PLATFOMR_CUSTOMER_RTOS
55 #include "basic_types.h"
56 #endif
57 #endif
58 
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 #endif //__PLATFORM_STDLIB_H__
64 
65