未验证 提交 900cc4b1 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #3052 from Lawlieta/develop

[net] Remove libc select in SAL and AT Socket function
menu "Network" menu "Network"
menu "Socket abstraction layer" menu "Socket abstraction layer"
config RT_USING_SAL config RT_USING_SAL
bool "Enable socket abstraction layer" bool "Enable socket abstraction layer"
select RT_USING_NETDEV select RT_USING_NETDEV
select RT_USING_LIBC
select RT_USING_SYSTEM_WORKQUEUE select RT_USING_SYSTEM_WORKQUEUE
default n default n
if RT_USING_SAL if RT_USING_SAL
if RT_USING_LWIP || AT_USING_SOCKET if RT_USING_LWIP || AT_USING_SOCKET
menu "protocol stack implement" menu "protocol stack implement"
config SAL_USING_LWIP config SAL_USING_LWIP
...@@ -24,29 +23,30 @@ config RT_USING_SAL ...@@ -24,29 +23,30 @@ config RT_USING_SAL
bool "Support AT Commands stack" bool "Support AT Commands stack"
default y default y
depends on AT_USING_SOCKET depends on AT_USING_SOCKET
config SAL_USING_TLS config SAL_USING_TLS
bool "Support MbedTLS protocol" bool "Support MbedTLS protocol"
default y default y
depends on PKG_USING_MBEDTLS depends on PKG_USING_MBEDTLS
endmenu endmenu
endif endif
config SAL_USING_POSIX config SAL_USING_POSIX
bool "Enable BSD socket operated by file system API" bool "Enable BSD socket operated by file system API"
default n default n
select RT_USING_DFS select RT_USING_DFS
select RT_USING_LIBC
select RT_USING_POSIX select RT_USING_POSIX
help help
Let BSD socket operated by file system API, such as read/write and involveed in select/poll POSIX APIs. Let BSD socket operated by file system API, such as read/write and involveed in select/poll POSIX APIs.
if !SAL_USING_POSIX if !SAL_USING_POSIX
config SAL_SOCKETS_NUM config SAL_SOCKETS_NUM
int "the maximum number of sockets" int "the maximum number of sockets"
default 16 default 16
endif endif
endif endif
...@@ -68,7 +68,7 @@ config RT_USING_NETDEV ...@@ -68,7 +68,7 @@ config RT_USING_NETDEV
config NETDEV_USING_PING config NETDEV_USING_PING
bool "Enable ping features" bool "Enable ping features"
default y default y
config NETDEV_USING_NETSTAT config NETDEV_USING_NETSTAT
bool "Enable netstat features" bool "Enable netstat features"
default y default y
...@@ -76,8 +76,8 @@ config RT_USING_NETDEV ...@@ -76,8 +76,8 @@ config RT_USING_NETDEV
config NETDEV_USING_AUTO_DEFAULT config NETDEV_USING_AUTO_DEFAULT
bool "Enable default netdev automatic change features" bool "Enable default netdev automatic change features"
default y default y
config NETDEV_USING_IPV6 config NETDEV_USING_IPV6
bool "Enable IPV6 protocol support" bool "Enable IPV6 protocol support"
default n default n
...@@ -94,7 +94,7 @@ config RT_USING_NETDEV ...@@ -94,7 +94,7 @@ config RT_USING_NETDEV
bool bool
help help
Defined to synchronize the ip6_addr structure state Defined to synchronize the ip6_addr structure state
default n default n
endif endif
endmenu endmenu
...@@ -277,7 +277,7 @@ config RT_USING_LWIP ...@@ -277,7 +277,7 @@ config RT_USING_LWIP
config LWIP_NETIF_STATUS_CALLBACK config LWIP_NETIF_STATUS_CALLBACK
int "Enable netif status callback" int "Enable netif status callback"
default 1 default 1
config LWIP_NETIF_LINK_CALLBACK config LWIP_NETIF_LINK_CALLBACK
int "Enable netif link status callback" int "Enable netif link status callback"
default 1 default 1
...@@ -314,7 +314,7 @@ config RT_USING_LWIP ...@@ -314,7 +314,7 @@ config RT_USING_LWIP
config RT_LWIP_USING_HW_CHECKSUM config RT_LWIP_USING_HW_CHECKSUM
bool "Enable hardware checksum" bool "Enable hardware checksum"
default n default n
config RT_LWIP_USING_PING config RT_LWIP_USING_PING
bool "Enable ping features" bool "Enable ping features"
default y default y
......
...@@ -9,11 +9,11 @@ if RT_USING_AT ...@@ -9,11 +9,11 @@ if RT_USING_AT
config AT_DEBUG config AT_DEBUG
bool "Enable debug log output" bool "Enable debug log output"
default n default n
config AT_USING_SERVER config AT_USING_SERVER
bool "Enable AT commands server" bool "Enable AT commands server"
default n default n
if AT_USING_SERVER if AT_USING_SERVER
config AT_SERVER_DEVICE config AT_SERVER_DEVICE
...@@ -44,33 +44,32 @@ if RT_USING_AT ...@@ -44,33 +44,32 @@ if RT_USING_AT
endchoice endchoice
endif endif
config AT_USING_CLIENT config AT_USING_CLIENT
bool "Enable AT commands client" bool "Enable AT commands client"
default n default n
if AT_USING_CLIENT if AT_USING_CLIENT
config AT_CLIENT_NUM_MAX config AT_CLIENT_NUM_MAX
int "The maximum number of supported clients" int "The maximum number of supported clients"
default 1 default 1
range 1 65535 range 1 65535
config AT_USING_SOCKET config AT_USING_SOCKET
bool "Enable BSD Socket API support by AT commnads" bool "Enable BSD Socket API support by AT commnads"
select RT_USING_LIBC
select RT_USING_SAL select RT_USING_SAL
default n default n
endif endif
if AT_USING_SERVER || AT_USING_CLIENT if AT_USING_SERVER || AT_USING_CLIENT
config AT_USING_CLI config AT_USING_CLI
bool "Enable CLI(Command-Line Interface) for AT commands" bool "Enable CLI(Command-Line Interface) for AT commands"
default y default y
depends on FINSH_USING_MSH depends on FINSH_USING_MSH
config AT_PRINT_RAW_CMD config AT_PRINT_RAW_CMD
bool "Enable print RAW format AT command communication data" bool "Enable print RAW format AT command communication data"
default n default n
...@@ -78,7 +77,7 @@ if RT_USING_AT ...@@ -78,7 +77,7 @@ if RT_USING_AT
config AT_CMD_MAX_LEN config AT_CMD_MAX_LEN
int "The maximum lenght of AT Commonds buffer" int "The maximum lenght of AT Commonds buffer"
default 128 default 128
endif endif
config AT_SW_VERSION_NUM config AT_SW_VERSION_NUM
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册