1 /************************************************************************** 2 * Copyright 2022 Cypress Semiconductor Corporation (an Infineon company) or 3 * an affiliate of Cypress Semiconductor Corporation. 4 * SPDX-Licence-Identifier: Apache-2.0 5 ***************************************************************************/ 6 7 #if !defined(CYCFG_BLE_H) 8 #define CYCFG_BLE_H 9 10 #define CY_BLE_CFG_TOOL_VERSION (250) 11 12 #include "cy_syslib.h" 13 14 #define CYBSP_BLE_ENABLED 1U 15 #define CY_BLE_CORE_CORTEX_M4 4U 16 #define CY_BLE_CORE_CORTEX_M0P 0U 17 #define CY_BLE_CORE_DUAL 255U 18 #ifndef CY_BLE_CORE 19 #define CY_BLE_CORE 4U 20 #endif 21 #define CY_BLE_IRQ bless_interrupt_IRQn 22 23 #if defined(COMPONENT_BLESS_CONTROLLER) 24 25 #include "cy_ble_event_handler.h" 26 #include "cy_ble_defines.h" 27 28 #define CY_BLE_MW_VERSION_REQUIRED (300) 29 30 #if !defined(CY_BLE_MW_VERSION) 31 #if (CY_BLE_MW_VERSION_MAJOR == 3) 32 #define CY_BLE_MW_VERSION (300) 33 #elif (CY_BLE_MW_VERSION_MAJOR == 2) 34 #define CY_BLE_MW_VERSION (200) 35 #elif (CY_BLE_MW_VERSION_MAJOR == 1) 36 #define CY_BLE_MW_VERSION (100) 37 #else 38 #define CY_BLE_MW_VERSION (100) 39 #endif 40 #endif 41 42 #if (CY_BLE_MW_VERSION_REQUIRED > CY_BLE_MW_VERSION) 43 #error The Bluetooth Configurator requires a newer version of the PSoC 6 BLESS Middleware. Update the PSoC 6 BLESS Middleware in your project. 44 #endif 45 46 #ifdef CONFIG_BT_MAX_CONN 47 #define CY_BLE_CONN_COUNT (CONFIG_BT_MAX_CONN) 48 #else 49 #define CY_BLE_CONN_COUNT (1) 50 #endif 51 52 #define CY_BLE_CONFIG_TX_POWER_CALIBRATION_ENABLE (0x01u) 53 #define CY_BLE_CONFIG_ENABLE_PHY_UPDATE (0x01u) 54 55 #include "cy_ble_cfg_common.h" 56 57 extern const cy_stc_ble_config_t cy_ble_config; 58 59 #endif 60 61 #endif 62