Bluetooth: controller: Included kconfigs for ISO-AL logging

Included kconfigs to set the ISO-AL logging level and control debug
logging verbosity.

Signed-off-by: Nirosharn Amarasinghe <niag@demant.com>
This commit is contained in:
Nirosharn Amarasinghe 2023-09-08 16:37:40 +02:00 committed by Carles Cufí
commit b96436296f
3 changed files with 27 additions and 3 deletions

View file

@ -398,6 +398,16 @@ config BT_DEBUG_SERVICE
This option enables debug support for the Bluetooth
Services.
# CONTROLLER (subsys/bluetooth/controller/Kconfig)
config BT_CTLR_DEBUG_ISOAL
bool "[DEPRECATED] Bluetooth ISO-AL debug"
select DEPRECATED
depends on BT_CTLR_ISO
help
This option enables debug support for the Bluetooth ISO-AL.
endmenu # [DEPRECATED] Others
menu "[DEPRECATED] BR/EDR"
@ -900,6 +910,13 @@ legacy-debug-sym = BT_DEBUG_SERVICE
module-str = "Bluetooth Services"
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
# CONTROLLER (subsys/bluetooth/controller/Kconfig)
module = BT_CTLR_ISOAL
legacy-debug-sym = BT_CTLR_DEBUG_ISOAL
module-str = "Bluetooth Controller ISO-AL"
source "subsys/bluetooth/common/Kconfig.template.log_config_bt"
endmenu # Others
menu "BR/EDR"

View file

@ -206,6 +206,13 @@ config BT_CTLR_ISO_TX_BUFFER_SIZE
Size of the Isochronous Tx buffers and the value returned in HCI LE
Read Buffer Size V2 command response.
config BT_CTLR_ISOAL_LOG_DBG_VERBOSE
bool "ISO-AL verbose debug logging"
depends on BT_CTLR_ISOAL_LOG_LEVEL = 4
default n
help
Use this option to enable ISO-AL verbose debug logging.
config BT_CTLR_ISOAL_SOURCES
int "Number of Isochronous Adaptation Layer sources"
depends on BT_CTLR_ADV_ISO || BT_CTLR_CONN_ISO

View file

@ -36,15 +36,15 @@
#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(bt_ctlr_isoal, LOG_LEVEL_INF);
LOG_MODULE_REGISTER(bt_ctlr_isoal, CONFIG_BT_CTLR_ISOAL_LOG_LEVEL);
#define ISOAL_LOG_DBG(...) LOG_DBG(__VA_ARGS__)
#if defined(ISOAL_DEBUG_VERBOSE)
#if defined(CONFIG_BT_CTLR_ISOAL_LOG_DBG_VERBOSE)
#define ISOAL_LOG_DBGV(...) LOG_DBG(__VA_ARGS__)
#else
#define ISOAL_LOG_DBGV(...) (void) 0
#endif /* ISOAL_DEBUG_VERBOSE */
#endif /* CONFIG_BT_CTLR_ISOAL_LOG_DBG_VERBOSE */
#include "hal/debug.h"