Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shell support #33

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions samples/scan_bm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,16 @@ target_sources(
src/utils.c
)

if(DEFINED CONFIG_NRF70_DEBUG_SHELL)
target_include_directories(app PRIVATE
$<TARGET_PROPERTY:nrf-wifi,INTERFACE_INCLUDE_DIRECTORIES>
)

target_sources(
app
PRIVATE
src/wifi_util.c
)
endif()

target_link_libraries(app PRIVATE nrf70-bm-lib)
4 changes: 4 additions & 0 deletions samples/scan_bm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,8 @@ config WIFI_MGMT_SCAN_CHAN_MAX_MANUAL
default 12
endif

config NRF70_DEBUG_SHELL
bool "Enable debug shell"
help
Enable debug shell for the sample.
endmenu
14 changes: 14 additions & 0 deletions samples/scan_bm/overlay-shell.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#
# Copyright (c) 2024 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: BSD-3-Clause
#

CONFIG_SHELL=y
CONFIG_SHELL_BACKEND_SERIAL=y
CONFIG_SHELL_STACK_SIZE=4200
CONFIG_NRF70_DEBUG_SHELL=y
CONFIG_SYS_HEAP_RUNTIME_STATS=y
CONFIG_LOG=y
CONFIG_LOG_MODE_IMMEDIATE=y
CONFIG_PRINTK=y
Loading
Loading