Bluetooth: controller: Add DEBUG_PINS support in nRF5340DK
Add support for BT_CTLR_DEBUG_PINS for nRF5340DK board. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
03852a5f02
commit
94d7469172
3 changed files with 7 additions and 4 deletions
|
@ -455,7 +455,7 @@ endif # BT_CTLR
|
||||||
|
|
||||||
config BT_CTLR_DEBUG_PINS_CPUAPP
|
config BT_CTLR_DEBUG_PINS_CPUAPP
|
||||||
bool "Bluetooth Controller Debug Pins"
|
bool "Bluetooth Controller Debug Pins"
|
||||||
depends on BOARD_NRF5340PDK_NRF5340_CPUAPP
|
depends on BOARD_NRF5340PDK_NRF5340_CPUAPP || BOARD_NRF5340DK_NRF5340_CPUAPP
|
||||||
help
|
help
|
||||||
Route debug GPIO toggling for the BLE Controller. Enable this when
|
Route debug GPIO toggling for the BLE Controller. Enable this when
|
||||||
using Bluetooth Controller Debug Pins in co-processor and the main
|
using Bluetooth Controller Debug Pins in co-processor and the main
|
||||||
|
|
|
@ -561,7 +561,7 @@ config BT_CTLR_PROFILE_ISR
|
||||||
|
|
||||||
config BT_CTLR_DEBUG_PINS
|
config BT_CTLR_DEBUG_PINS
|
||||||
bool "Bluetooth Controller Debug Pins"
|
bool "Bluetooth Controller Debug Pins"
|
||||||
depends on BOARD_NRF51DK_NRF51422 || BOARD_NRF52DK_NRF52832 || BOARD_NRF52DK_NRF52810 || BOARD_NRF52840DK_NRF52840 || BOARD_NRF5340PDK_NRF5340_CPUNET || BOARD_RV32M1_VEGA
|
depends on BOARD_NRF51DK_NRF51422 || BOARD_NRF52DK_NRF52832 || BOARD_NRF52DK_NRF52810 || BOARD_NRF52840DK_NRF52840 || BOARD_NRF5340PDK_NRF5340_CPUNET || BOARD_NRF5340DK_NRF5340_CPUNET || BOARD_RV32M1_VEGA
|
||||||
help
|
help
|
||||||
Turn on debug GPIO toggling for the BLE Controller. This is useful
|
Turn on debug GPIO toggling for the BLE Controller. This is useful
|
||||||
when debugging with a logic analyzer or profiling certain sections of
|
when debugging with a logic analyzer or profiling certain sections of
|
||||||
|
|
|
@ -8,7 +8,9 @@
|
||||||
#if defined(CONFIG_BT_CTLR_DEBUG_PINS) || \
|
#if defined(CONFIG_BT_CTLR_DEBUG_PINS) || \
|
||||||
defined(CONFIG_BT_CTLR_DEBUG_PINS_CPUAPP)
|
defined(CONFIG_BT_CTLR_DEBUG_PINS_CPUAPP)
|
||||||
#if defined(CONFIG_BOARD_NRF5340PDK_NRF5340_CPUAPP) || \
|
#if defined(CONFIG_BOARD_NRF5340PDK_NRF5340_CPUAPP) || \
|
||||||
defined(CONFIG_BOARD_NRF5340PDK_NRF5340_CPUNET)
|
defined(CONFIG_BOARD_NRF5340PDK_NRF5340_CPUNET) || \
|
||||||
|
defined(CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP) || \
|
||||||
|
defined(CONFIG_BOARD_NRF5340DK_NRF5340_CPUNET)
|
||||||
#define DEBUG_PORT NRF_P1
|
#define DEBUG_PORT NRF_P1
|
||||||
#define DEBUG_PIN_IDX0 0
|
#define DEBUG_PIN_IDX0 0
|
||||||
#define DEBUG_PIN_IDX1 1
|
#define DEBUG_PIN_IDX1 1
|
||||||
|
@ -30,7 +32,8 @@
|
||||||
#define DEBUG_PIN7 BIT(DEBUG_PIN_IDX7)
|
#define DEBUG_PIN7 BIT(DEBUG_PIN_IDX7)
|
||||||
#define DEBUG_PIN8 BIT(DEBUG_PIN_IDX8)
|
#define DEBUG_PIN8 BIT(DEBUG_PIN_IDX8)
|
||||||
#define DEBUG_PIN9 BIT(DEBUG_PIN_IDX9)
|
#define DEBUG_PIN9 BIT(DEBUG_PIN_IDX9)
|
||||||
#if defined(CONFIG_BOARD_NRF5340PDK_NRF5340_CPUAPP)
|
#if defined(CONFIG_BOARD_NRF5340PDK_NRF5340_CPUAPP) || \
|
||||||
|
defined(CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP)
|
||||||
#define DEBUG_SETUP() \
|
#define DEBUG_SETUP() \
|
||||||
do { \
|
do { \
|
||||||
DEBUG_PORT->PIN_CNF[DEBUG_PIN_IDX0] = \
|
DEBUG_PORT->PIN_CNF[DEBUG_PIN_IDX0] = \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue