4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 19:03:31 +08:00

Merge pull request #1689 from chenyong111/master

Modify SAL configure judgment, add AT Socket select LIBC.
This commit is contained in:
朱天龙 (Armink) 2018-08-02 21:50:21 +08:00 committed by GitHub
commit 6f012541b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 14 deletions

View File

@ -9,20 +9,22 @@ config RT_USING_SAL
if RT_USING_SAL
menu "protocol stack implement"
if RT_USING_LWIP || AT_USING_SOCKET
config SAL_USING_LWIP
bool "Support lwIP stack"
default y if RT_USING_LWIP
default n
depends on RT_USING_LWIP
menu "protocol stack implement"
config SAL_USING_AT
bool "Support AT Commands stack"
default y if AT_USING_SOCKET
default n
depends on AT_USING_SOCKET
endmenu
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
endmenu
endif
config SAL_USING_POSIX
bool "Enable BSD socket operated by file system API"

View File

@ -61,6 +61,7 @@ if RT_USING_AT
config AT_USING_SOCKET
bool "Provide similar BSD Socket API by AT"
select RT_USING_LIBC
default n
endif

View File

@ -26,6 +26,7 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/time.h>
#include <at_socket.h>

View File

@ -23,8 +23,8 @@ if GetDepend('SAL_USING_POSIX'):
if not GetDepend('HAVE_SYS_SELECT_H'):
CPPPATH += [cwd + '/include/dfs_net/sys_select']
if not GetDepend('HAVE_SYS_SOCKET_H'):
CPPPATH += [cwd + '/include/socket/sys_socket']
if not GetDepend('HAVE_SYS_SOCKET_H'):
CPPPATH += [cwd + '/include/socket/sys_socket']
group = DefineGroup('SAL', src, depend = ['RT_USING_SAL'], CPPPATH = CPPPATH)