Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Xiaobo07
rt-thread
提交
b793b642
R
rt-thread
项目概览
Xiaobo07
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
2
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b793b642
编写于
5月 15, 2022
作者:
mysterywolf
提交者:
guo
5月 16, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[sal] add draft for docking winsock
上级
19abf927
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
48 addition
and
27 deletion
+48
-27
bsp/simulator/Kconfig
bsp/simulator/Kconfig
+5
-0
components/libc/compilers/common/sys/time.h
components/libc/compilers/common/sys/time.h
+2
-2
components/net/sal/Kconfig
components/net/sal/Kconfig
+22
-21
components/net/sal/SConscript
components/net/sal/SConscript
+7
-4
components/net/sal/docking/af_inet.h
components/net/sal/docking/af_inet.h
+0
-0
components/net/sal/docking/af_inet_at.c
components/net/sal/docking/af_inet_at.c
+0
-0
components/net/sal/docking/af_inet_lwip.c
components/net/sal/docking/af_inet_lwip.c
+0
-0
components/net/sal/docking/af_inet_winsock.c
components/net/sal/docking/af_inet_winsock.c
+12
-0
components/net/sal/docking/proto_mbedtls.c
components/net/sal/docking/proto_mbedtls.c
+0
-0
未找到文件。
bsp/simulator/Kconfig
浏览文件 @
b793b642
...
...
@@ -29,6 +29,11 @@ config RT_USING_DFS_WINSHAREDIR
select RT_USING_POSIX_FS
default n
config BSP_USING_SAL_WINSOCK
bool "Enable Windows socket (winsock) with SAL"
select RT_USING_SAL
default n
config BSP_USING_LVGL
bool "Enable LVGL for LCD"
select PKG_USING_LVGL
...
...
components/libc/compilers/common/sys/time.h
浏览文件 @
b793b642
...
...
@@ -43,14 +43,14 @@ struct timezone
int
tz_dsttime
;
/* type of dst correction */
};
#if
!defined(_TIMEVAL_DEFINED)
#if
ndef _TIMEVAL_DEFINED
#define _TIMEVAL_DEFINED
struct
timeval
{
time_t
tv_sec
;
/* seconds */
suseconds_t
tv_usec
;
/* and microseconds */
};
#endif
/*
!defined(_TIMEVAL_DEFINED) && !defined(_WIN32)
*/
#endif
/*
_TIMEVAL_DEFINED
*/
#if defined(__ARMCC_VERSION) || defined(_WIN32) || (defined(__ICCARM__) && (__VER__ < 8010001))
struct
timespec
...
...
components/net/sal/Kconfig
浏览文件 @
b793b642
...
...
@@ -12,27 +12,28 @@ if RT_USING_SAL
help
The ability that check internet status is provided by RT-Thread.
if RT_USING_LWIP || AT_USING_SOCKET
menu "protocol stack implement"
config SAL_USING_LWIP
bool "Support lwIP stack"
default y
depends on RT_USING_LWIP
config SAL_USING_AT
bool "Support AT Commands stack"
default y
depends on AT_USING_SOCKET
config SAL_USING_TLS
bool "Support MbedTLS protocol"
default y
depends on PKG_USING_MBEDTLS
endmenu
endif
menu "Docking with protocol stacks"
config SAL_USING_LWIP
bool "Docking with lwIP stack"
default y
depends on RT_USING_LWIP
config SAL_USING_AT
bool "Docking with AT commands stack"
default y
depends on AT_USING_SOCKET
config SAL_USING_WINSOCK
bool "Docking with Windows socket (winsock)"
default y
depends on BSP_USING_SAL_WINSOCK
config SAL_USING_TLS
bool "Docking with MbedTLS protocol"
default y
depends on PKG_USING_MBEDTLS
endmenu
config SAL_USING_POSIX
bool
...
...
components/net/sal/SConscript
浏览文件 @
b793b642
...
...
@@ -11,16 +11,19 @@ CPPPATH = [cwd + '/include']
CPPPATH
+=
[
cwd
+
'/include/socket'
]
if
GetDepend
(
'SAL_USING_LWIP'
):
src
+=
Glob
(
'
impl
/af_inet_lwip.c'
)
src
+=
Glob
(
'
docking
/af_inet_lwip.c'
)
if
GetDepend
(
'SAL_USING_AT'
):
src
+=
Glob
(
'
impl
/af_inet_at.c'
)
src
+=
Glob
(
'
docking
/af_inet_at.c'
)
if
GetDepend
(
'SAL_USING_LWIP'
)
or
GetDepend
(
'SAL_USING_AT'
):
CPPPATH
+=
[
cwd
+
'/impl'
]
CPPPATH
+=
[
cwd
+
'/docking'
]
if
GetDepend
(
'SAL_USING_WINSOCK'
):
src
+=
Glob
(
'docking/af_inet_winsock.c'
)
if
GetDepend
(
'SAL_USING_TLS'
):
src
+=
Glob
(
'
impl
/proto_mbedtls.c'
)
src
+=
Glob
(
'
docking
/proto_mbedtls.c'
)
if
GetDepend
(
'SAL_USING_POSIX'
):
CPPPATH
+=
[
cwd
+
'/include/dfs_net'
]
...
...
components/net/sal/
impl
/af_inet.h
→
components/net/sal/
docking
/af_inet.h
浏览文件 @
b793b642
文件已移动
components/net/sal/
impl
/af_inet_at.c
→
components/net/sal/
docking
/af_inet_at.c
浏览文件 @
b793b642
文件已移动
components/net/sal/
impl
/af_inet_lwip.c
→
components/net/sal/
docking
/af_inet_lwip.c
浏览文件 @
b793b642
文件已移动
components/net/sal/docking/af_inet_winsock.c
0 → 100644
浏览文件 @
b793b642
/*
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
*/
#include <winsock.h>
/* Do NOT include sys/time.h in this file */
components/net/sal/
impl
/proto_mbedtls.c
→
components/net/sal/
docking
/proto_mbedtls.c
浏览文件 @
b793b642
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录