-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: net: sockets: echo: enable socket offload for cc3220sf_launchxl
Add a prj conf file for the TI cc3220sf_launchxl board to enable socket offload to the simplelink WiFi driver. Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
- Loading branch information
Showing
3 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
cmake_minimum_required(VERSION 3.8.2) | ||
macro(set_conf_file) | ||
if(EXISTS ${APPLICATION_SOURCE_DIR}/prj_${BOARD}.conf) | ||
set(CONF_FILE "${APPLICATION_SOURCE_DIR}/prj_${BOARD}.conf") | ||
elseif(EXISTS ${APPLICATION_SOURCE_DIR}/boards/${BOARD}.conf) | ||
set(CONF_FILE | ||
"prj.conf ${APPLICATION_SOURCE_DIR}/boards/${BOARD}.conf") | ||
else() | ||
set(CONF_FILE "prj.conf") | ||
endif() | ||
endmacro() | ||
|
||
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) | ||
project(NONE) | ||
|
||
FILE(GLOB app_sources src/*.c) | ||
target_sources(app PRIVATE ${app_sources}) | ||
|
||
include($ENV{ZEPHYR_BASE}/samples/net/common/common.cmake) | ||
include($ENV{ZEPHYR_BASE}/samples/net/common/common.cmake) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Networking Config: | ||
CONFIG_NETWORKING=y | ||
CONFIG_NET_IPV4=y | ||
CONFIG_NET_IPV6=n | ||
CONFIG_NET_SOCKETS=y | ||
|
||
# Enable SimpleLink WiFi Driver and Socket Offload | ||
CONFIG_WIFI=y | ||
CONFIG_WIFI_SIMPLELINK=y | ||
CONFIG_NET_SOCKETS_OFFLOAD=y | ||
|
||
# Disable unneeded settings from the base prj.conf: | ||
CONFIG_TEST_RANDOM_GENERATOR=n | ||
CONFIG_NET_CONFIG_SETTINGS=n | ||
CONFIG_NET_CONFIG_MY_IPV4_ADDR="" | ||
CONFIG_NET_CONFIG_PEER_IPV4_ADDR="" | ||
|
||
# Debugging | ||
CONFIG_NET_LOG=y | ||
CONFIG_SYS_LOG_WIFI_LEVEL=4 | ||
CONFIG_DEBUG=y | ||
#CONFIG_SYS_LOG=y | ||
#CONFIG_ASSERT=y |