2021-12-06 01:59:55 -05:00
|
|
|
/*
|
2023-08-31 21:29:40 -04:00
|
|
|
* SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
|
2021-12-06 01:59:55 -05:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2019-06-30 04:39:00 -04:00
|
|
|
|
|
|
|
#ifndef __BT_USER_CONFIG_H__
|
|
|
|
#define __BT_USER_CONFIG_H__
|
|
|
|
#include "sdkconfig.h"
|
|
|
|
|
|
|
|
#define UC_TRACE_LEVEL_NONE 0 /* No trace messages to be generated */
|
|
|
|
#define UC_TRACE_LEVEL_ERROR 1 /* Error condition trace messages */
|
|
|
|
#define UC_TRACE_LEVEL_WARNING 2 /* Warning condition trace messages */
|
|
|
|
#define UC_TRACE_LEVEL_API 3 /* API traces */
|
|
|
|
#define UC_TRACE_LEVEL_EVENT 4 /* Debug messages for events */
|
|
|
|
#define UC_TRACE_LEVEL_DEBUG 5 /* Full debug messages */
|
|
|
|
#define UC_TRACE_LEVEL_VERBOSE 6 /* Verbose debug messages */
|
|
|
|
|
|
|
|
//DYNAMIC ENV ALLOCATOR
|
|
|
|
#ifdef CONFIG_BT_BLE_DYNAMIC_ENV_MEMORY
|
|
|
|
#define UC_BT_BLE_DYNAMIC_ENV_MEMORY CONFIG_BT_BLE_DYNAMIC_ENV_MEMORY
|
|
|
|
#else
|
|
|
|
#define UC_BT_BLE_DYNAMIC_ENV_MEMORY FALSE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_BT_STACK_NO_LOG
|
|
|
|
#define UC_BT_STACK_NO_LOG CONFIG_BT_STACK_NO_LOG
|
|
|
|
#else
|
|
|
|
#define UC_BT_STACK_NO_LOG FALSE
|
|
|
|
#endif
|
|
|
|
|
2023-08-31 21:29:40 -04:00
|
|
|
#ifdef CONFIG_BT_CONTROLLER_ENABLED
|
|
|
|
#define UC_BT_CONTROLLER_INCLUDED TRUE
|
|
|
|
#else
|
|
|
|
#define UC_BT_CONTROLLER_INCLUDED FALSE
|
|
|
|
#endif
|
|
|
|
|
2019-06-30 04:39:00 -04:00
|
|
|
/**********************************************************
|
|
|
|
* Thread/Task reference
|
|
|
|
**********************************************************/
|
2020-01-13 23:16:24 -05:00
|
|
|
#ifdef CONFIG_BT_BLUEDROID_PINNED_TO_CORE
|
2023-12-13 17:32:53 -05:00
|
|
|
#define UC_TASK_PINNED_TO_CORE (CONFIG_BT_BLUEDROID_PINNED_TO_CORE < CONFIG_FREERTOS_NUMBER_OF_CORES ? CONFIG_BT_BLUEDROID_PINNED_TO_CORE : tskNO_AFFINITY)
|
2019-06-30 04:39:00 -04:00
|
|
|
#else
|
|
|
|
#define UC_TASK_PINNED_TO_CORE (0)
|
|
|
|
#endif
|
|
|
|
|
2020-01-13 23:16:24 -05:00
|
|
|
#ifdef CONFIG_BT_BTC_TASK_STACK_SIZE
|
|
|
|
#define UC_BTC_TASK_STACK_SIZE CONFIG_BT_BTC_TASK_STACK_SIZE
|
2019-06-30 04:39:00 -04:00
|
|
|
#else
|
2019-10-21 08:18:21 -04:00
|
|
|
#define UC_BTC_TASK_STACK_SIZE 4096
|
2019-06-30 04:39:00 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/**********************************************************
|
|
|
|
* Trace reference
|
|
|
|
**********************************************************/
|
|
|
|
|
|
|
|
#ifdef CONFIG_LOG_DEFAULT_LEVEL
|
|
|
|
#define UC_LOG_DEFAULT_LEVEL CONFIG_LOG_DEFAULT_LEVEL
|
|
|
|
#else
|
|
|
|
#define UC_LOG_DEFAULT_LEVEL 3
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_BOOTLOADER_LOG_LEVEL
|
|
|
|
#define UC_BOOTLOADER_LOG_LEVEL CONFIG_BOOTLOADER_LOG_LEVEL
|
|
|
|
#else
|
|
|
|
#define UC_BOOTLOADER_LOG_LEVEL 3
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_BT_LOG_BTC_TRACE_LEVEL
|
|
|
|
#define UC_BT_LOG_BTC_TRACE_LEVEL CONFIG_BT_LOG_BTC_TRACE_LEVEL
|
|
|
|
#else
|
|
|
|
#define UC_BT_LOG_BTC_TRACE_LEVEL UC_TRACE_LEVEL_WARNING
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_BT_LOG_OSI_TRACE_LEVEL
|
|
|
|
#define UC_BT_LOG_OSI_TRACE_LEVEL CONFIG_BT_LOG_OSI_TRACE_LEVEL
|
|
|
|
#else
|
|
|
|
#define UC_BT_LOG_OSI_TRACE_LEVEL UC_TRACE_LEVEL_WARNING
|
|
|
|
#endif
|
|
|
|
|
2021-03-31 00:51:48 -04:00
|
|
|
#ifdef CONFIG_BT_LOG_BLUFI_TRACE_LEVEL
|
|
|
|
#define UC_BT_LOG_BLUFI_TRACE_LEVEL CONFIG_BT_LOG_BLUFI_TRACE_LEVEL
|
|
|
|
#else
|
|
|
|
#define UC_BT_LOG_BLUFI_TRACE_LEVEL UC_TRACE_LEVEL_WARNING
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//BLUFI
|
|
|
|
#if defined(CONFIG_BT_BLE_BLUFI_ENABLE) || defined(CONFIG_BT_NIMBLE_BLUFI_ENABLE)
|
|
|
|
#define UC_BT_BLUFI_ENABLE TRUE
|
|
|
|
#else
|
|
|
|
#define UC_BT_BLUFI_ENABLE FALSE
|
|
|
|
#endif
|
|
|
|
|
2022-07-22 04:13:09 -04:00
|
|
|
//MEMORY DEBUG
|
|
|
|
#ifdef CONFIG_BT_BLUEDROID_MEM_DEBUG
|
|
|
|
#define UC_BT_BLUEDROID_MEM_DEBUG TRUE
|
|
|
|
#else
|
|
|
|
#define UC_BT_BLUEDROID_MEM_DEBUG FALSE
|
|
|
|
#endif
|
|
|
|
|
2019-06-30 04:39:00 -04:00
|
|
|
#endif /* __BT_USER_CONFIG_H__ */
|