Skip to content

Commit 6bf2f13

Browse files
piotrslaweckicarlescufi
authored andcommitted
samples: peripheral: Introduce IEEE 802.15.4 PHY Test Tool to NCS
IEEE 802.15.4 PHY Test Tool introduction as a peripheral sample Signed-off-by: Piotr Sławęcki <[email protected]>
1 parent 322a86e commit 6bf2f13

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+11928
-0
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ Kconfig* @tejlmand
115115
/samples/profiler/ @pdunaj @pizi-nordic
116116
/samples/peripheral/radio_test/ @kapi-no
117117
/samples/peripheral/lpuart/ @nordic-krch
118+
/samples/peripheral/802154_phy_test/ @czeslawmakarski
118119
/samples/tfm/tfm_hello_world/ @oyvindronningstad
119120
/samples/zigbee/ @tomchy @sebastiandraus
120121
/samples/CMakeLists.txt @tejlmand
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#
2+
# Copyright (c) 2021 Nordic Semiconductor
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
cmake_minimum_required(VERSION 3.10)
8+
9+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
10+
project(phy_tt LANGUAGES NONE)
11+
12+
target_include_directories(app PRIVATE
13+
include
14+
include/internal
15+
include/internal/ctrl
16+
include/internal/rf)
17+
18+
target_sources(app PRIVATE
19+
src/main.c
20+
src/comm_proc.c
21+
src/uart_proc.c
22+
src/rf_proc.c
23+
src/ptt_conf.c
24+
src/periph_proc.c
25+
src/timer_proc.c
26+
src/ctrl/ptt_ctrl.c
27+
src/ctrl/ptt_events.c
28+
src/ctrl/ptt_mode_manager.c
29+
src/ctrl/ptt_parser.c
30+
src/ctrl/ptt_proto.c
31+
src/ctrl/ptt_rf_proc.c
32+
src/ctrl/ptt_timers.c
33+
src/ctrl/ptt_uart_proc.c
34+
src/ctrl/ptt_zb_perf_cmd_mode_ota.c
35+
src/ctrl/ptt_zb_perf_cmd_mode_response.c
36+
src/ctrl/ptt_zb_perf_cmd_mode_uart.c
37+
src/ctrl/ptt_zb_perf_cmd_mode.c
38+
src/ctrl/ptt_zb_perf_dut_mode.c
39+
src/rf/ptt_rf.c)
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
#
2+
# Copyright (c) 2021 Nordic Semiconductor
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
7+
source "Kconfig.zephyr"
8+
9+
menu "PHY Test Tool configuration"
10+
11+
choice
12+
prompt "Device Mode"
13+
default PTT_BOTH
14+
help
15+
Select the device mode
16+
17+
config PTT_DUT_MODE
18+
bool "Configure device as a DUT"
19+
help
20+
DUT (Device Under Test) - serial communication is not initialized
21+
22+
config PTT_CMD_MODE
23+
bool "Configure device as a CMD"
24+
help
25+
CMD - serial communication is available with 115200 8N1 settings
26+
27+
config PTT_BOTH
28+
bool "Supports both CMD and DUT modes"
29+
help
30+
Device can be switched between modes using "custom changemode 0/1" command.
31+
32+
endchoice
33+
34+
config PTT_POWER
35+
int "Transmit Power (dBm)"
36+
default 0
37+
range -20 8
38+
39+
config PTT_CHANNEL_MASK
40+
hex "Channel page and channel number mask"
41+
default 0x00000800
42+
43+
config PTT_SW_VERSION
44+
int "Software Version"
45+
default 1
46+
range 0 255
47+
48+
config PTT_HW_VERSION
49+
int "Hardware Version"
50+
default 1
51+
range 0 255
52+
53+
config PTT_ANTENNA_DIVERSITY
54+
bool "Enable Antenna Diversity (Not Yet Supported)"
55+
default n
56+
57+
if PTT_ANTENNA_DIVERSITY
58+
59+
choice
60+
prompt "Antenna Mode"
61+
default PTT_ANT_MODE_AUTO
62+
help
63+
Select the antenna diversity mode
64+
65+
config PTT_ANT_MODE_AUTO
66+
bool "Automatic"
67+
68+
config PTT_ANT_MODE_MANUAL
69+
bool "Manual"
70+
71+
endchoice
72+
73+
config PTT_ANTENNA_NUMBER
74+
int "Antenna Number"
75+
range 0 2
76+
default 0
77+
78+
endif #PTT_ANTENNA_DIVERSITY
79+
80+
endmenu

0 commit comments

Comments
 (0)