-
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.
Add HCI interface to Direct Test Mode sample. Jira: NCSDK-22490 Signed-off-by: Dominik Chat <dominik.chat@nordicsemi.no>
- Loading branch information
1 parent
a91e93a
commit c790a93
Showing
28 changed files
with
2,223 additions
and
183 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
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
18 changes: 5 additions & 13 deletions
18
samples/bluetooth/direct_test_mode/boards/nrf5340dk_nrf5340_cpunet.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
19 changes: 19 additions & 0 deletions
19
samples/bluetooth/direct_test_mode/conf/remote_shell_nrf53.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,19 @@ | ||
/* | ||
* Copyright (c) 2023 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
/ { | ||
chosen { | ||
ncs,dtm-uart = &uart0; | ||
}; | ||
}; | ||
|
||
&uart0 { | ||
status = "okay"; | ||
compatible = "nordic,nrf-ipc-uart"; | ||
ipc = <&ipc0>; | ||
ept-name = "remote shell"; | ||
current-speed = <19200>; | ||
}; |
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,15 @@ | ||
# | ||
# Copyright (c) 2023 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
CONFIG_NCS_SAMPLE_REMOTE_SHELL_CHILD_IMAGE=n | ||
CONFIG_IPC_UART=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 |
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,9 @@ | ||
# | ||
# Copyright (c) 2023 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
CONFIG_DTM_TRANSPORT_HCI=y | ||
CONFIG_NET_BUF=y | ||
CONFIG_UART_ASYNC_API=y |
20 changes: 20 additions & 0 deletions
20
samples/bluetooth/direct_test_mode/remote_hci/CMakeLists.txt
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,20 @@ | ||
# | ||
# Copyright (c) 2023 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
cmake_minimum_required(VERSION 3.20.0) | ||
|
||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) | ||
project(remote_hci) | ||
|
||
target_include_directories(app PRIVATE ./../rpc) | ||
target_include_directories(app PRIVATE ./../src/transport) | ||
|
||
# NORDIC SDK APP START | ||
target_sources(app PRIVATE | ||
src/main.c | ||
../src/transport/hci_uart.c | ||
) | ||
# NORDIC SDK APP END |
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,53 @@ | ||
# | ||
# Copyright (c) 2023 Nordic Semiconductor | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
mainmenu "Nordic Remote HCI DTM" | ||
|
||
config DTM_REMOTE_HCI_CHILD | ||
bool | ||
default y | ||
|
||
config DTM_PUT_THREAD_STACK_SIZE | ||
int "dtm_put thread stack size" | ||
default 2048 | ||
help | ||
Stack size of the dtm_put thread. | ||
|
||
config DTM_PUT_THREAD_PRIORITY | ||
int "dtm_put thread priority" | ||
default 7 | ||
help | ||
Priority of the dtm_put thread. | ||
|
||
config REMOTE_HCI_QUEUE_COUNT | ||
int "Count of HCI RX/TX queues" | ||
default 16 | ||
help | ||
Maximum depth of the HCI RX/TX queues. | ||
|
||
config REMOTE_HCI_QUEUE_SIZE | ||
int "Size of HCI RX/TX queue buffer" | ||
default 1024 | ||
help | ||
Maximum size of the HCI RX/TX queue element. | ||
|
||
config REMOTE_HCI_TX_THREAD_STACK_SIZE | ||
int "Stack size of TX thread" | ||
default 2048 | ||
help | ||
Stack size of the TX thread. | ||
|
||
config REMOTE_HCI_TX_THREAD_PRIORITY | ||
int "TX thread priority" | ||
default 7 | ||
help | ||
Priority of the TX thread. | ||
|
||
module = DTM_REMOTE_HCI | ||
module-str = "DTM_remote_hci" | ||
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config" | ||
|
||
source "Kconfig.zephyr" |
25 changes: 25 additions & 0 deletions
25
samples/bluetooth/direct_test_mode/remote_hci/boards/nrf5340dk_nrf5340_cpuapp.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,25 @@ | ||
/* | ||
* Copyright (c) 2023 Nordic Semiconductor ASA | ||
* | ||
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
*/ | ||
|
||
/ { | ||
chosen { | ||
ncs,dtm-uart = &uart0; | ||
}; | ||
}; | ||
|
||
&uart0 { | ||
status = "okay"; | ||
current-speed = <115200>; | ||
}; | ||
|
||
&gpio_fwd { | ||
dfe-radio { | ||
gpios = <&gpio0 4 0>, | ||
<&gpio0 5 0>, | ||
<&gpio0 6 0>, | ||
<&gpio0 7 0>; | ||
}; | ||
}; |
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,26 @@ | ||
# | ||
# Copyright (c) 2023 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
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 | ||
CONFIG_UART_ASYNC_API=y | ||
|
||
CONFIG_NRF_RPC=y | ||
CONFIG_NRF_RPC_CBOR=y | ||
CONFIG_IDLE_STACK_SIZE=2048 | ||
|
||
CONFIG_NET_BUF=y | ||
|
||
CONFIG_BOARD_ENABLE_CPUNET=y |
Oops, something went wrong.