Skip to content

Commit 2f4843f

Browse files
Kamil Gaworcarlescufi
authored andcommitted
bluetooth: samples: hci_uart: Add support for nrf52833dk
Adds support for the nrf52833dk_nrf52833 which supports the Direction Finding feature. It allows also to perform the Direct Test Mode with the CTE feature. Signed-off-by: Kamil Gawor <[email protected]>
1 parent a80416f commit 2f4843f

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Copyright (c) 2022 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&uart0 {
8+
compatible = "nordic,nrf-uarte";
9+
current-speed = <1000000>;
10+
status = "okay";
11+
hw-flow-control;
12+
};
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Copyright (c) 2022 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&uart0 {
8+
compatible = "nordic,nrf-uarte";
9+
current-speed = <1000000>;
10+
status = "okay";
11+
hw-flow-control;
12+
};
13+
14+
&radio {
15+
status = "okay";
16+
/* This is an example number of antennas that may be available
17+
* on antenna matrix board.
18+
*/
19+
dfe-antenna-num = <10>;
20+
/* This is an example switch pattern that will be used to set an
21+
* antenna for Tx PDU (period before start of Tx CTE).
22+
*/
23+
dfe-pdu-antenna = <0x0>;
24+
25+
/* These are example GPIO pin numbers that are provided to
26+
* Radio peripheral. The pins will be acquired by Radio to
27+
* drive antenna switching when AoD is enabled.
28+
*/
29+
dfegpio0-gpios = <&gpio0 3 0>;
30+
dfegpio1-gpios = <&gpio0 4 0>;
31+
dfegpio2-gpios = <&gpio0 28 0>;
32+
dfegpio3-gpios = <&gpio0 29 0>;
33+
};

samples/bluetooth/hci_uart/sample.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,18 @@ tests:
1212
platform_allow: 96b_nitrogen nrf51dk_nrf51422
1313
nrf52dk_nrf52832
1414
tags: uart bluetooth
15+
sample.bluetooth.hci_uart.nrf52833.df:
16+
harness: bluetooth
17+
platform_allow: nrf52833dk_nrf52833
18+
extra_args: DTC_OVERLAY_FILE=./boards/nrf52833dk_nrf52833_df.overlay
19+
extra_configs:
20+
- CONFIG_BT_CTLR_DF=y
21+
tags: uart bluetooth
22+
sample.bluetooth.hci_uart.nrf52833.df.iq_report:
23+
harness: bluetooth
24+
platform_allow: nrf52833dk_nrf52833
25+
extra_args: DTC_OVERLAY_FILE=./boards/nrf52833dk_nrf52833_df.overlay
26+
extra_configs:
27+
- CONFIG_BT_CTLR_DF=y
28+
- CONFIG_BT_CTLR_DTM_HCI_DF_IQ_REPORT=y
29+
tags: uart bluetooth

0 commit comments

Comments
 (0)