1 /* 2 * Copyright (c) 2022 ASR Microelectronics (Shanghai) Co., Ltd. All rights reserved. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef SONATA_STACK_CONFIG_H_ 17 #define SONATA_STACK_CONFIG_H_ 18 /* 19 * INCLUDE FILES 20 **************************************************************************************** 21 */ 22 #include "sonata_stack_user_config.h" 23 24 /* 25 * DEFINES 26 **************************************************************************************** 27 */ 28 ////////////////////////////////////////// 29 /* user configurabld */ 30 #ifdef SONATA_CFG_APP 31 #ifndef CFG_APP 32 #define CFG_APP 33 #endif 34 #endif // SONATA_CFG_APP 35 36 #ifdef SONATA_CFG_HOST 37 #ifndef CFG_HOST 38 #define CFG_HOST 39 #endif 40 #ifndef CFG_PRF 41 #define CFG_PRF 42 #endif 43 #ifndef CFG_CON 44 #define CFG_CON 7 45 #endif 46 #ifndef CFG_ATTC 47 #define CFG_ATTC 48 #endif 49 #ifndef CFG_ATTS 50 #define CFG_ATTS 51 #endif 52 #ifndef CFG_EXT_DB 53 #define CFG_EXT_DB 54 #endif 55 56 #ifdef SONATA_CFG_BLE_TRANSPORT 57 #define CFG_AHITL 58 #endif // SONATA_CFG_BLE_TRANSPORT 59 60 #endif // SONATA_CFG_HOST 61 62 #ifdef SONATA_CFG_BLE_TRANSPORT 63 #define CFG_HCITL 64 #endif // SONATA_CFG_BLE_TRANSPORT 65 66 #ifdef SONATA_CFG_OTAS 67 #define CFG_PRF_OTAS 68 #endif // SONATA_CFG_OTAS 69 70 #ifdef SONATA_CFG_DIS 71 #define CFG_PRF_DISS 72 #endif // SONATA_CFG_DIS 73 74 #ifdef SONATA_CFG_BASS 75 #define CFG_PRF_BASS 76 #endif // SONATA_CFG_BASS 77 78 #ifdef SONATA_CFG_MESH 79 #define CFG_BLE_MESH 80 81 #define CFG_BLE_MESH_MSG_API 82 83 #define CFG_BLE_ADV_TEST_MODE 84 85 #if ((defined SONATA_CFG_MESH_DBG) && (defined SONATA_CFG_DBG)) 86 #define CFG_BLE_MESH_DBG 87 #endif // ((defined SONATA_CFG_MESH_DBG) && (defined SONATA_CFG_DBG)) 88 89 #define CFG_BLE_MESH_RELAY 90 91 #define CFG_BLE_MESH_GATT_PROXY 92 93 #define CFG_BLE_MESH_GATT_PROV 94 95 #define CFG_BLE_MESH_FRIEND 96 97 #define CFG_BLE_MESH_LPN 98 99 #define CFG_BLE_MESH_STORAGE_NVDS 100 101 #define CFG_BLE_MESH_MDL_SERVER 102 103 #define CFG_BLE_MESH_MDL_GENS 104 105 #define CFG_BLE_MESH_MDL_CLIENT 106 107 #define CFG_BLE_MESH_MDL_GENC 108 109 #define CFG_BLE_MESH_MDL_LIGHTS 110 111 #endif // SONATA_CFG_MESH 112 113 #ifdef SONATA_CFG_NVDS 114 #define CFG_NVDS 115 #endif // SONATA_CFG_NVDS 116 117 #ifdef SONATA_CFG_DISPLAY 118 #define CFG_DISPLAY 119 #endif // SONATA_CFG_DISPLAY 120 121 #ifdef SONATA_CFG_DBG 122 #define CFG_DBG 123 124 #define CFG_DBG_MEM 125 126 #define CFG_DBG_FLASH 127 128 #define CFG_DBG_STACK_PROF 129 #endif // SONATA_CFG_DBG 130 131 #ifdef SONATA_CFG_TRC 132 #define CFG_TRC_EN 133 134 #define CFG_TRC_ALL 135 #endif // SONATA_CFG_TRC 136 137 #endif /* SONATA_STACK_CONFIG_H_ */ 138 139