1 /* 2 * Copyright (c) 2024 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #define ADV_SLOW_INT \ 8 .interval_min = BT_GAP_ADV_SLOW_INT_MIN, \ 9 .interval_max = BT_GAP_ADV_SLOW_INT_MAX 10 11 #define ADV_FAST_INT \ 12 .interval_min = BT_GAP_ADV_FAST_INT_MIN_2, \ 13 .interval_max = BT_GAP_ADV_FAST_INT_MAX_2 14 15 #define BT_DEVICE_NAME (IS_ENABLED(CONFIG_BT_DEVICE_NAME_DYNAMIC) ? \ 16 (const uint8_t *)bt_get_name() : \ 17 (const uint8_t *)CONFIG_BT_DEVICE_NAME) 18 #define BT_DEVICE_NAME_LEN (IS_ENABLED(CONFIG_BT_DEVICE_NAME_DYNAMIC) ? strlen(bt_get_name()) : \ 19 (sizeof(CONFIG_BT_DEVICE_NAME) - 1)) 20