support PLC bus and opcua API

This commit is contained in:
wlyu
2022-01-30 22:51:00 +08:00
parent d5ff9259a0
commit 5346d8401f
19 changed files with 913 additions and 29 deletions
+4 -3
View File
@@ -26,6 +26,8 @@
#include <xs_waitqueue.h>
#include <sys/time.h>
typedef unsigned long NfdsType;
#if !defined(POLLIN) && !defined(POLLOUT)
#define POLLIN 0x001
@@ -36,8 +38,6 @@
#define POLLMASK_DEFAULT (POLLIN | POLLOUT )
typedef unsigned long NfdsType;
struct pollfd
{
int fd;
@@ -54,6 +54,7 @@ typedef struct Pollreq
} pollreqType;
void PollAdd(WaitQueueType *wq, pollreqType *req);
#ifndef poll
int poll(struct pollfd *fds, NfdsType nfds, int timeout);
#endif
#endif
+1
View File
@@ -26,6 +26,7 @@ endif
ifeq ($(CONFIG_SUPPORT_CONTROL_FRAMEWORK), y)
APPPATHS += -I$(KERNEL_ROOT)/../../APP_Framework/Framework/control #
APPPATHS += -I$(KERNEL_ROOT)/../../APP_Framework/Framework/control/plc/interoperability/opcua #
APPPATHS += -I$(KERNEL_ROOT)/../../APP_Framework\lib\cJSON
endif
ifeq ($(CONFIG_CRYPTO), y)
+2
View File
@@ -189,6 +189,7 @@ KERNELPATHS :=-I$(BSP_ROOT) \
-I$(KERNEL_ROOT)/resources/ethernet/LwIP/include/lwip/priv \
-I$(KERNEL_ROOT)/resources/ethernet/LwIP/include/lwip/prot \
-I$(KERNEL_ROOT)/resources/ethernet/LwIP/arch \
-I$(KERNEL_ROOT)/resources/include \
-I$(BSP_ROOT)/include #
endif
@@ -258,6 +259,7 @@ endif
ifeq ($(CONFIG_SUPPORT_CONTROL_FRAMEWORK), y)
KERNELPATHS += -I$(KERNEL_ROOT)/../../APP_Framework/Framework/control #
KERNELPATHS += -I$(KERNEL_ROOT)/../../APP_Framework/Framework/control/plc/interoperability/opcua #
KERNELPATHS += -I$(KERNEL_ROOT)/../../APP_Framework/lib/cJSON
endif
ifeq ($(CONFIG_CRYPTO), y)
+3
View File
@@ -54,6 +54,7 @@ enum BusType_e
TYPE_SERIAL_BUS,
TYPE_ADC_BUS,
TYPE_DAC_BUS,
TYPE_PLC_BUS,
TYPE_BUS_END,
};
@@ -80,6 +81,7 @@ enum DevType
TYPE_SERIAL_DEV,
TYPE_ADC_DEV,
TYPE_DAC_DEV,
TYPE_PLC_DEV,
TYPE_DEV_END,
};
@@ -106,6 +108,7 @@ enum DriverType_e
TYPE_SERIAL_DRV,
TYPE_ADC_DRV,
TYPE_DAC_DRV,
TYPE_PLC_DRV,
TYPE_DRV_END,
};