Commit 5a095d42 authored by Gerard Marull-Paretas's avatar Gerard Marull-Paretas Committed by Fabio Baltieri
Browse files

bluetooth: controller: nordic: provide dummy DEBUG_SETUP



So that clients do not have to understand in which situation it is not
defined.

Signed-off-by: default avatarGerard Marull-Paretas <gerard@teslabs.com>
parent baad6220
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@
		soc_secure_gpio_pin_mcu_select(32 + DEBUG_PIN_IDX9, NRF_GPIO_PIN_SEL_NETWORK); \
	} while (0)
#else
#define DEBUG_SETUP()
#endif /* CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP */
#elif defined(CONFIG_BOARD_NRF52840DK) || defined(CONFIG_BOARD_NRF52833DK)
#define DEBUG_PORT       NRF_P1
@@ -59,6 +60,7 @@
#define DEBUG_PIN7       BIT(8)
#define DEBUG_PIN8       BIT(10)
#define DEBUG_PIN9       BIT(11)
#define DEBUG_SETUP()
#elif defined(CONFIG_BOARD_NRF52DK)
#define DEBUG_PORT       NRF_GPIO
#define DEBUG_PIN0       BIT(11)
@@ -71,6 +73,7 @@
#define DEBUG_PIN7       BIT(18)
#define DEBUG_PIN8       BIT(19)
#define DEBUG_PIN9       BIT(20)
#define DEBUG_SETUP()
#elif defined(CONFIG_BOARD_NRF51DK)
#define DEBUG_PORT       NRF_GPIO
#define DEBUG_PIN0       BIT(12)
@@ -83,6 +86,7 @@
#define DEBUG_PIN7       BIT(19)
#define DEBUG_PIN8       BIT(20)
#define DEBUG_PIN9       BIT(23)
#define DEBUG_SETUP()
#else
#error BT_CTLR_DEBUG_PINS not supported on this board.
#endif
@@ -318,6 +322,7 @@
	} while (0)

#else
#define DEBUG_SETUP()
#define DEBUG_INIT()
#define DEBUG_CPU_SLEEP(flag)
#define DEBUG_TICKER_ISR(flag)