未验证 提交 5d6f122f 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1901 from armink/fix_sal

Fix sal
......@@ -23,6 +23,8 @@
#define LOG_TAG "at.skt"
#include <at_log.h>
#ifdef AT_USING_SOCKET
#define HTONS_PORT(x) ((((x) & 0x00ffUL) << 8) | (((x) & 0xff00UL) >> 8))
#define NIPQUAD(addr) \
((unsigned char *)&addr)[0], \
......@@ -1175,3 +1177,5 @@ void at_socket_device_register(const struct at_device_ops *ops)
RT_ASSERT(ops->at_set_event_cb);
at_dev_ops = (struct at_device_ops *) ops;
}
#endif /* AT_USING_SOCKET */
......@@ -20,6 +20,8 @@
#include <dfs_poll.h>
#endif
#ifdef SAL_USING_AT
#ifdef SAL_USING_POSIX
static int at_poll(struct dfs_fd *file, struct rt_pollreq *req)
{
......@@ -111,3 +113,5 @@ int at_inet_init(void)
return 0;
}
INIT_COMPONENT_EXPORT(at_inet_init);
#endif /* SAL_USING_AT */
......@@ -30,6 +30,8 @@
#endif
#endif
#ifdef SAL_USING_LWIP
#ifdef SAL_USING_POSIX
/*
* Re-define lwip socket
......@@ -293,3 +295,5 @@ int lwip_inet_init(void)
return 0;
}
INIT_COMPONENT_EXPORT(lwip_inet_init);
#endif /* SAL_USING_LWIP */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册