-
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: update direct_test_mode sample to match HWMv2
Update Direct Test Mode sample to support HWMv2 This update includes removing custom board handlig, as this is no longer feasible considered the possibilities of using shortened board qualifiers as well as legacy board names. Instead the config fragments and overlay files has been reorganized to take advantage of FILE_SUFFIX feature. A custom handling for shield overlay had to be made, because Zephyr does not support application specific board with shield overlay files. However, this custom handling has been made so that it does not require custom handling of HWMv2 board names. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
- Loading branch information
Showing
18 changed files
with
142 additions
and
90 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
23 changes: 23 additions & 0 deletions
23
samples/bluetooth/direct_test_mode/boards/nrf5340dk_nrf5340_cpunet_hci.conf
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 @@ | ||
# | ||
# Copyright (c) 2021 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
CONFIG_IPC_SERVICE=y | ||
CONFIG_IPC_SERVICE_BACKEND_RPMSG=y | ||
CONFIG_MBOX=y | ||
|
||
CONFIG_NRFX_DPPI=y | ||
|
||
CONFIG_HEAP_MEM_POOL_SIZE=4096 | ||
|
||
# Do not build Remote shell APP Core sample for the application core in hci mode | ||
CONFIG_NCS_SAMPLE_REMOTE_SHELL_CHILD_IMAGE=n | ||
|
||
CONFIG_NCS_SAMPLE_DTM_REMOTE_HCI_CHILD_IMAGE=y | ||
CONFIG_NRF_RPC=y | ||
CONFIG_NRF_RPC_CBOR=y | ||
|
||
CONFIG_DTM_TRANSPORT_HCI=y | ||
CONFIG_NET_BUF=y |
28 changes: 28 additions & 0 deletions
28
samples/bluetooth/direct_test_mode/boards/nrf5340dk_nrf5340_cpunet_hci.overlay
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,28 @@ | ||
/* | ||
* Copyright (c) 2023 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
&radio { | ||
status = "okay"; | ||
/* This is a number of antennas that are available on antenna matrix | ||
* designed by Nordic. For more information see README.rst. | ||
*/ | ||
dfe-antenna-num = <12>; | ||
/* This is a setting that enables antenna 12 (in antenna matrix designed | ||
* by Nordic) for PDU. For more information see README.rst. | ||
*/ | ||
dfe-pdu-antenna = <0x0>; | ||
|
||
/* These are GPIO pin numbers that are provided to | ||
* Radio peripheral. The pins will be acquired by Radio to | ||
* drive antenna switching. | ||
* Pin numbers are selected to drive switches on antenna matrix | ||
* desinged by Nordic. For more information see README.rst. | ||
*/ | ||
dfegpio0-gpios = <&gpio0 4 0>; | ||
dfegpio1-gpios = <&gpio0 5 0>; | ||
dfegpio2-gpios = <&gpio0 6 0>; | ||
dfegpio3-gpios = <&gpio0 7 0>; | ||
}; |
File renamed without changes.
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 |
---|---|---|
|
@@ -24,3 +24,7 @@ | |
<&gpio0 7 0>; | ||
}; | ||
}; | ||
|
||
#if NRF21540EK | ||
#include "nrf21540ek.overlay" | ||
#endif |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 0 additions & 8 deletions
8
samples/bluetooth/direct_test_mode/conf/remote_shell/nrf21540ek_usb.overlay
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
samples/bluetooth/direct_test_mode/conf/remote_shell_nrf53.overlay
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,31 @@ | ||
# | ||
# Copyright (c) 2020 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
# Configure assertions | ||
CONFIG_ASSERT=y | ||
CONFIG_ASSERT_NO_COND_INFO=y | ||
CONFIG_ASSERT_NO_MSG_INFO=y | ||
|
||
CONFIG_HW_STACK_PROTECTION=y | ||
|
||
CONFIG_CONSOLE=n | ||
CONFIG_UART_CONSOLE=n | ||
|
||
CONFIG_LOG=y | ||
CONFIG_LOG_PRINTK=y | ||
CONFIG_USE_SEGGER_RTT=y | ||
CONFIG_LOG_BACKEND_RTT=y | ||
|
||
# Use necessary peripherals | ||
CONFIG_NRFX_TIMER0=y | ||
CONFIG_NRFX_TIMER1=y | ||
CONFIG_NRFX_TIMER2=y | ||
|
||
CONFIG_FEM_AL_LIB=y | ||
|
||
CONFIG_DTM_TRANSPORT_HCI=y | ||
CONFIG_NET_BUF=y | ||
CONFIG_UART_ASYNC_API=y |
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,29 @@ | ||
# | ||
# Copyright (c) 2020 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
# Configure assertions | ||
CONFIG_ASSERT=y | ||
CONFIG_ASSERT_NO_COND_INFO=y | ||
CONFIG_ASSERT_NO_MSG_INFO=y | ||
|
||
CONFIG_HW_STACK_PROTECTION=y | ||
|
||
CONFIG_CONSOLE=n | ||
CONFIG_UART_CONSOLE=n | ||
|
||
CONFIG_LOG=y | ||
CONFIG_LOG_PRINTK=y | ||
CONFIG_USE_SEGGER_RTT=y | ||
CONFIG_LOG_BACKEND_RTT=y | ||
|
||
# Use necessary peripherals | ||
CONFIG_NRFX_TIMER0=y | ||
CONFIG_NRFX_TIMER1=y | ||
CONFIG_NRFX_TIMER2=y | ||
|
||
CONFIG_FEM_AL_LIB=y | ||
|
||
CONFIG_DTM_USB=y |
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