-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: dect: dect_phy: dect_shell: new sample shell application
New sample for DECT NR+ PHY shell tools. Including for example: - RF tool for rx/tx testing - Ping tool with HARQ - Throughput performance measurement tool Jira: MOSH-576 Signed-off-by: Jani Hirsimäki <[email protected]>
- Loading branch information
Showing
55 changed files
with
14,430 additions
and
2 deletions.
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
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,47 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
cmake_minimum_required(VERSION 3.20.0) | ||
|
||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) | ||
project(DESH) | ||
target_include_directories(app PRIVATE src) | ||
|
||
target_sources(app PRIVATE src/main.c) | ||
target_sources(app PRIVATE src/shell.c) | ||
|
||
add_subdirectory(src/print) | ||
add_subdirectory(src/utils) | ||
add_subdirectory_ifdef(CONFIG_DESH_DECT_PHY src/dect) | ||
if(NOT ENV{PROJECT_NAME}) | ||
zephyr_compile_definitions( | ||
PROJECT_NAME=${CMAKE_PROJECT_NAME} | ||
) | ||
endif() | ||
|
||
find_package(Git QUIET) | ||
if(NOT APP_VERSION AND GIT_FOUND) | ||
execute_process( | ||
COMMAND ${GIT_EXECUTABLE} describe --abbrev=12 | ||
WORKING_DIRECTORY ${NRF_DIR} | ||
OUTPUT_VARIABLE APP_VERSION | ||
OUTPUT_STRIP_TRAILING_WHITESPACE | ||
ERROR_STRIP_TRAILING_WHITESPACE | ||
ERROR_VARIABLE stderr | ||
RESULT_VARIABLE return_code | ||
) | ||
if(return_code) | ||
message(STATUS "git describe failed: ${stderr}; ${KERNEL_VERSION_STRING} will be used instead") | ||
elseif(CMAKE_VERBOSE_MAKEFILE) | ||
message(STATUS "git describe stderr: ${stderr}") | ||
endif() | ||
endif() | ||
|
||
if(APP_VERSION) | ||
zephyr_compile_definitions( | ||
APP_VERSION=${APP_VERSION} | ||
) | ||
endif() |
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,24 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
source "Kconfig.zephyr" | ||
|
||
menu "Nordic Dect NR+ Phy Shell config" | ||
|
||
config DESH_PRINT_BUFFER_SIZE | ||
int "Buffer size used when printing shell output" | ||
default 1024 | ||
help | ||
If the printed string exceeds this buffer, an error message is printed first and | ||
then the requested string cut into the length of this buffer. | ||
|
||
config DESH_DECT_PHY | ||
bool "DECT NR+ PHY api shell tools" | ||
default y | ||
help | ||
DECT NR+ PHY api shell tools | ||
|
||
endmenu |
Oops, something went wrong.