Skip to content

Commit a25764b

Browse files
ppryga-nordicjhedberg
authored andcommitted
samples: Bluetooth: df_tx: Add config for support the nRF52820
Add required configuration and DTS overlay for support the nRF52820 SOC. Signed-off-by: Piotr Pryga <[email protected]>
1 parent bd7d28e commit a25764b

File tree

5 files changed

+38
-7
lines changed

5 files changed

+38
-7
lines changed

samples/bluetooth/direction_finding_connectionless_tx/README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Requirements
1414
************
1515

1616
* nRF52833DK board with nRF52833 SOC
17+
* nRF52833DK board with nRF52820 SOC
1718
* antenna matrix for AoD (optional)
1819

1920
Building and Running
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CONFIG_BT_CTLR=y
2+
CONFIG_BT_LL_SW_SPLIT=y
3+
4+
CONFIG_BT_CTLR_ADV_EXT=y
5+
CONFIG_BT_CTLR_ADV_PERIODIC=y
6+
7+
# Enable Direction Finding TX Feature including AoA and AoD
8+
CONFIG_BT_CTLR_DF=y
9+
CONFIG_BT_CTLR_DF_ANT_SWITCH_RX=n
10+
CONFIG_BT_CTLR_DF_SCAN_CTE_RX=n
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2021 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&radio {
8+
status = "okay";
9+
/* This is an example number of antennas that may be available
10+
* on antenna matrix board.
11+
*/
12+
dfe-antenna-num = <10>;
13+
/* This is an example switch pattern that will be used to set an
14+
* antenna for Tx PDU (period before start of Tx CTE).
15+
*/
16+
dfe-pdu-antenna = <0x1>;
17+
18+
/* These are example GPIO pin numbers that are provided to
19+
* Radio peripheral. The pins will be acquired by Radio to
20+
* drive antenna switching when AoD is enabled.
21+
*/
22+
dfegpio0-gpios = <&gpio0 1 0>;
23+
dfegpio1-gpios = <&gpio0 2 0>;
24+
dfegpio2-gpios = <&gpio0 3 0>;
25+
dfegpio3-gpios = <&gpio0 4 0>;
26+
};

samples/bluetooth/direction_finding_connectionless_tx/boards/nrf52833dk_nrf52833.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/* This is an example number of antennas that may be available
1010
* on antenna matrix board.
1111
*/
12-
dfe-antenna-num = < 10 >;
12+
dfe-antenna-num = <10>;
1313
/* This is an example switch pattern that will be used to set an
1414
* antenna for Tx PDU (period before start of Tx CTE).
1515
*/
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
CONFIG_BT=y
2-
CONFIG_BT_CTLR=y
3-
CONFIG_BT_LL_SW_SPLIT=y
42
CONFIG_BT_DEVICE_NAME="DF Connectionless Beacon App"
53

64
CONFIG_BT_EXT_ADV=y
75
CONFIG_BT_PER_ADV=y
8-
CONFIG_BT_CTLR_ADV_EXT=y
9-
CONFIG_BT_CTLR_ADV_PERIODIC=y
106

117
# Enable Direction Finding Feature including AoA and AoD
128
CONFIG_BT_DF=y
13-
CONFIG_BT_CTLR_DF=y
14-
CONFIG_BT_CTLR_DF_ADV_CTE_TX=y

0 commit comments

Comments
 (0)