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 <piotr.pryga@nordicsemi.no>
This commit is contained in:
Piotr Pryga 2021-06-15 11:16:46 +02:00 committed by Johan Hedberg
commit a25764b19c
5 changed files with 38 additions and 7 deletions

View file

@ -14,6 +14,7 @@ Requirements
************
* nRF52833DK board with nRF52833 SOC
* nRF52833DK board with nRF52820 SOC
* antenna matrix for AoD (optional)
Building and Running

View file

@ -0,0 +1,10 @@
CONFIG_BT_CTLR=y
CONFIG_BT_LL_SW_SPLIT=y
CONFIG_BT_CTLR_ADV_EXT=y
CONFIG_BT_CTLR_ADV_PERIODIC=y
# Enable Direction Finding TX Feature including AoA and AoD
CONFIG_BT_CTLR_DF=y
CONFIG_BT_CTLR_DF_ANT_SWITCH_RX=n
CONFIG_BT_CTLR_DF_SCAN_CTE_RX=n

View file

@ -0,0 +1,26 @@
/*
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
&radio {
status = "okay";
/* This is an example number of antennas that may be available
* on antenna matrix board.
*/
dfe-antenna-num = <10>;
/* This is an example switch pattern that will be used to set an
* antenna for Tx PDU (period before start of Tx CTE).
*/
dfe-pdu-antenna = <0x1>;
/* These are example GPIO pin numbers that are provided to
* Radio peripheral. The pins will be acquired by Radio to
* drive antenna switching when AoD is enabled.
*/
dfegpio0-gpios = <&gpio0 1 0>;
dfegpio1-gpios = <&gpio0 2 0>;
dfegpio2-gpios = <&gpio0 3 0>;
dfegpio3-gpios = <&gpio0 4 0>;
};

View file

@ -9,7 +9,7 @@
/* This is an example number of antennas that may be available
* on antenna matrix board.
*/
dfe-antenna-num = < 10 >;
dfe-antenna-num = <10>;
/* This is an example switch pattern that will be used to set an
* antenna for Tx PDU (period before start of Tx CTE).
*/

View file

@ -1,14 +1,8 @@
CONFIG_BT=y
CONFIG_BT_CTLR=y
CONFIG_BT_LL_SW_SPLIT=y
CONFIG_BT_DEVICE_NAME="DF Connectionless Beacon App"
CONFIG_BT_EXT_ADV=y
CONFIG_BT_PER_ADV=y
CONFIG_BT_CTLR_ADV_EXT=y
CONFIG_BT_CTLR_ADV_PERIODIC=y
# Enable Direction Finding Feature including AoA and AoD
CONFIG_BT_DF=y
CONFIG_BT_CTLR_DF=y
CONFIG_BT_CTLR_DF_ADV_CTE_TX=y