Files
kunlun/app/smart_grid/driver/sta/iot_sg_sta_drv.c

132 lines
2.8 KiB
C
Raw Normal View History

2024-09-28 14:24:04 +08:00
/****************************************************************************
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.
****************************************************************************/
/* os_shim header files */
#include "os_types_api.h"
/* iot common header files */
#include "iot_oem_api.h"
/* smart grid internal header files */
#include "iot_sg_fr.h"
#include "iot_sg_sta_drv_api.h"
#if IOT_SMART_GRID_ENABLE
#if IOT_SMART_GRID_PM_ENABLE
extern iot_sg_sta_drv_t g_pm_drv;
#endif
#if IOT_SMART_GRID_HX_PM_ENABLE
extern iot_sg_sta_drv_t hx_pm_drv;
#endif
#if IOT_SMART_GRID_HX_DLMS_PM_ENABLE
extern iot_sg_sta_drv_t hx_dlms_pm_drv;
#endif
#if IOT_SMART_GRID_WAPPER_PM_ENABLE
extern iot_sg_sta_drv_t wapper_pm_drv;
#endif
#if IOT_SMART_GRID_CT1_ENABLE
extern iot_sg_sta_drv_t g_ct1_drv;
#endif
#if IOT_NW_CT1_DRIVER_ENABLE
extern iot_sg_sta_drv_t g_nw_ct1_drv;
#endif
#if IOT_SMART_GRID_CT2_ENABLE
extern iot_sg_sta_drv_t g_ct2_drv;
#endif
#if IOT_SMART_GRID_TEST_DRV_ENABLE
extern iot_sg_sta_drv_t g_test_drv;
#endif
#if IOT_FOREIGN_1662_PM_ENABLE
extern iot_sg_sta_drv_t g_pm_1662_drv;
#endif
#if IOT_FOREIGN_QSXJ_PM_ENABLE
extern iot_sg_sta_drv_t g_pm_qsxj_drv;
#endif
#if IOT_SMART_GRID_IEC_PM_ENABLE
extern iot_sg_sta_drv_t g_iec_pm_drv;
#endif
iot_sg_sta_drv_t *g_sta_drv_table[IOT_SG_STA_DRV_TABLE_SIZE] = {
#if IOT_SMART_GRID_PM_ENABLE
&g_pm_drv,
#elif IOT_SMART_GRID_HX_PM_ENABLE
&hx_pm_drv,
#else
NULL,
#endif
#if IOT_SMART_GRID_CT1_ENABLE
&g_ct1_drv,
#elif IOT_NW_CT1_DRIVER_ENABLE
&g_nw_ct1_drv,
#else
NULL,
#endif
#if IOT_SMART_GRID_CT2_ENABLE
&g_ct2_drv,
#else
NULL,
#endif
#if IOT_SMART_GRID_TEST_DRV_ENABLE
&g_test_drv,
#else
NULL,
#endif
#if IOT_FOREIGN_1662_PM_ENABLE
&g_pm_1662_drv,
#else
NULL,
#endif
#if IOT_FOREIGN_QSXJ_PM_ENABLE
&g_pm_qsxj_drv,
#else
NULL,
#endif
#if IOT_SMART_GRID_HX_DLMS_PM_ENABLE
&hx_dlms_pm_drv,
#else
NULL,
#endif
#if IOT_SMART_GRID_WAPPER_PM_ENABLE
&wapper_pm_drv,
#else
NULL,
#endif
#if IOT_SMART_GRID_IEC_PM_ENABLE
&g_iec_pm_drv,
#else
NULL,
#endif
};
#endif /* IOT_SMART_GRID_ENABLE */