初始提交
This commit is contained in:
77
export/inc/iot_config_api.h
Executable file
77
export/inc/iot_config_api.h
Executable file
@@ -0,0 +1,77 @@
|
||||
/****************************************************************************
|
||||
|
||||
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
|
||||
|
||||
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
|
||||
be copied by any method or incorporated into another program without
|
||||
the express written consent of Aerospace C.Power. This Information or any portion
|
||||
thereof remains the property of Aerospace C.Power. The Information contained herein
|
||||
is believed to be accurate and Aerospace C.Power assumes no responsibility or
|
||||
liability for its use in any way and conveys no license or title under
|
||||
any patent or copyright and makes no representation or warranty that this
|
||||
Information is free from patent or copyright infringement.
|
||||
|
||||
****************************************************************************/
|
||||
|
||||
/* This file contains the Kunlun features configuration
|
||||
* any feature related .c file should include this file
|
||||
*/
|
||||
|
||||
#ifndef IOT_CONFIG_API_H
|
||||
#define IOT_CONFIG_API_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* HW configuration start *****************************************************/
|
||||
|
||||
/* HW platform defination, simulator by default */
|
||||
#define HW_PLATFORM_SIMU 0
|
||||
#define HW_PLATFORM_FPGA 1
|
||||
#define HW_PLATFORM_SILICON 2
|
||||
|
||||
#ifndef HW_PLATFORM
|
||||
#define HW_PLATFORM HW_PLATFORM_SIMU
|
||||
#endif
|
||||
|
||||
#define TARGET_KUNLUN 1
|
||||
#define TARGET_KUNLUN2 2
|
||||
#define TARGET_KUNLUN3 3
|
||||
|
||||
#ifndef TARGET_VERSION
|
||||
#define TARGET_VERSION TARGET_KUNLUN
|
||||
#endif
|
||||
|
||||
/* production line defination, plc by default */
|
||||
#define IOT_PRODUCT_LINE_PLC 0
|
||||
#define IOT_PRODUCT_LINE_AI 1
|
||||
#define IOT_PRODUCT_LINE_NB 2
|
||||
#define IOT_PRODUCT_LINE_BT 3
|
||||
|
||||
#ifndef IOT_PRODUCT_LINE
|
||||
#define IOT_PRODUCT_LINE IOT_PRODUCT_LINE_PLC
|
||||
#endif
|
||||
/* HW configuration end *******************************************************/
|
||||
|
||||
#if (IOT_PRODUCT_LINE == IOT_PRODUCT_LINE_AI)
|
||||
#include "config/ai_config_api.h"
|
||||
#endif
|
||||
|
||||
#if (IOT_PRODUCT_LINE == IOT_PRODUCT_LINE_PLC)
|
||||
#include "config/plc_config_api.h"
|
||||
#endif
|
||||
|
||||
#if (IOT_PRODUCT_LINE == IOT_PRODUCT_LINE_NB)
|
||||
#include "config/nb_config_api.h"
|
||||
#endif
|
||||
|
||||
#if (IOT_PRODUCT_LINE == IOT_PRODUCT_LINE_BT)
|
||||
#include "config/bt_config_api.h"
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* IOT_CONFIG_API_H */
|
Reference in New Issue
Block a user