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