1 /* 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 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 * Description: dfx feature config file 15 * This file should be changed only infrequently and with great care. 16 */ 17 18 #ifndef DFX_FEATURE_CONFIG_H 19 #define DFX_FEATURE_CONFIG_H 20 21 #define DFX_YES 1 22 #define DFX_NO 0 23 24 /* 特性:是否支持文件传输 */ 25 #ifndef CONFIG_DFX_SUPPORT_TRANSMIT_FILE 26 #define CONFIG_DFX_SUPPORT_TRANSMIT_FILE DFX_NO 27 #endif 28 29 /* 特性:是否支持文件传输回调 */ 30 #ifndef CONFIG_DFX_SUPPORT_TRANSMIT_FILE_HOOK 31 #define CONFIG_DFX_SUPPORT_TRANSMIT_FILE_HOOK DFX_YES 32 #endif 33 34 /* 特性:是否支持断点续传 */ 35 #ifndef CONFIG_DFX_SUPPORT_CONTINUOUSLY_TRANSMIT 36 #define CONFIG_DFX_SUPPORT_CONTINUOUSLY_TRANSMIT DFX_NO 37 #endif 38 39 /* 特性:是否支持DIAG */ 40 #ifndef CONFIG_DFX_SUPPORT_DIAG 41 #define CONFIG_DFX_SUPPORT_DIAG DFX_YES 42 #endif 43 44 /* 特性:是否支持DIAG接收数据包 */ 45 #ifndef CONFIG_DFX_SUPPORT_DIAG_RX_PKT 46 #define CONFIG_DFX_SUPPORT_DIAG_RX_PKT DFX_YES 47 #endif 48 49 /* 特性:是否支持DIAG分帧和组包 */ 50 #ifndef CONFIG_DFX_SUPPORT_DIAG_MULTI_FRAME 51 #define CONFIG_DFX_SUPPORT_DIAG_MULTI_FRAME DFX_NO 52 #endif 53 54 /* 特性:是否支持串口连接UART */ 55 #ifndef CONFIG_DFX_SUPPORT_DIAG_UART_CHANNEL 56 #define CONFIG_DFX_SUPPORT_DIAG_UART_CHANNEL DFX_YES 57 #endif 58 59 /* 特性:DIAG作为上位机处理IND */ 60 #ifndef CONFIG_DFX_SUPPORT_DIAG_UP_MACHINE 61 #define CONFIG_DFX_SUPPORT_DIAG_UP_MACHINE DFX_NO 62 #endif 63 64 /* 特性:DIAG连接支持心跳机制 */ 65 #ifndef CONFIG_DFX_SUPPORT_DIAG_BEAT_HEART 66 #define CONFIG_DFX_SUPPORT_DIAG_BEAT_HEART DFX_YES 67 #endif 68 69 /* 特性: 支持密码连接 */ 70 #ifndef CONFIG_DFX_SUPPORT_DIAG_CONNECT_PASSWORD 71 #define CONFIG_DFX_SUPPORT_DIAG_CONNECT_PASSWORD DFX_YES 72 #endif 73 74 /* 特性: DIAG支持的日志类型 */ 75 /* 精简型日志 */ 76 #ifndef CONFIG_DFX_SUPPORT_DIAG_MINIMAL_MSG 77 #define CONFIG_DFX_SUPPORT_DIAG_MINIMAL_MSG DFX_NO 78 #endif 79 /* 标准型日志 */ 80 #ifndef CONFIG_DFX_SUPPORT_DIAG_NORMAL_MSG 81 #define CONFIG_DFX_SUPPORT_DIAG_NORMAL_MSG DFX_NO 82 #endif 83 /* 扩展型日志(毫秒精度时间戳) */ 84 #ifndef CONFIG_DFX_SUPPORT_DIAG_EXTEND_MSG 85 #define CONFIG_DFX_SUPPORT_DIAG_EXTEND_MSG DFX_NO 86 #endif 87 /* 完整型日志 */ 88 #ifndef CONFIG_DFX_SUPPORT_DIAG_FULL_MSG 89 #define CONFIG_DFX_SUPPORT_DIAG_FULL_MSG DFX_YES 90 #endif 91 92 #if ((CONFIG_DFX_SUPPORT_DIAG_MINIMAL_MSG + CONFIG_DFX_SUPPORT_DIAG_NORMAL_MSG + \ 93 CONFIG_DFX_SUPPORT_DIAG_EXTEND_MSG + CONFIG_DFX_SUPPORT_DIAG_FULL_MSG) != 1) 94 #error "SELLECT DIAG LOG TYPE ERROR" 95 #endif 96 97 /* 特性:支持虚拟AT */ 98 #ifndef CONFIG_DFX_SUPPORT_DIAG_VIRTUAL_AT 99 #define CONFIG_DFX_SUPPORT_DIAG_VIRTUAL_AT DFX_NO 100 #endif 101 102 /* 特性:支持虚拟SHELL */ 103 #ifndef CONFIG_DFX_SUPPORT_DIAG_VRTTUAL_SHELL 104 #define CONFIG_DFX_SUPPORT_DIAG_VRTTUAL_SHELL DFX_YES 105 #endif 106 107 /* 特性: DIAG适配SOC LOG */ 108 #ifndef CONFIG_DFX_SUPPORT_DIAG_ADAPT_SOC_LOG 109 #define CONFIG_DFX_SUPPORT_DIAG_ADAPT_SOC_LOG DFX_NO 110 #endif 111 112 /* 特性: 支持SOC LOG */ 113 #ifndef CONFIG_DFX_SUPPORT_SOC_LOG 114 #define CONFIG_DFX_SUPPORT_SOC_LOG DFX_NO 115 #endif 116 117 /* 特性: 系统状态监控 */ 118 #ifndef CONFIG_DFX_SUPPORT_SYS_MONITOR 119 #define CONFIG_DFX_SUPPORT_SYS_MONITOR DFX_NO 120 #endif 121 122 /* 特性: 延时重启 */ 123 #ifndef CONFIG_DFX_SUPPORT_DELAY_REBOOT 124 #define CONFIG_DFX_SUPPORT_DELAY_REBOOT DFX_NO 125 #endif 126 127 /* 特性: DIAG支持USB */ 128 #ifndef CONFIG_DFX_SUPPORT_DIAG_CONNECT_USB 129 #define CONFIG_DFX_SUPPORT_DIAG_CONNECT_USB DFX_NO 130 #endif 131 132 /* 特性: DIAG支持蓝牙连接 */ 133 #ifndef CONFIG_DFX_SUPPORT_DIAG_CONNECT_BLE 134 #define CONFIG_DFX_SUPPORT_DIAG_CONNECT_BLE DFX_NO 135 #endif 136 137 /* 特性: 支持文件系统 */ 138 #ifndef CONFIG_DFX_SUPPORT_FILE_SYSTEM 139 #define CONFIG_DFX_SUPPORT_FILE_SYSTEM DFX_NO 140 #endif 141 142 /* 特性: 支持日志离线存储到本地 */ 143 #ifndef CONFIG_DFX_SUPPORT_OFFLINE_LOG_FILE 144 #define CONFIG_DFX_SUPPORT_OFFLINE_LOG_FILE DFX_NO 145 #endif 146 147 /* 特性: 只有DIAG日志离线存储到本地 */ 148 #ifndef CONFIG_DFX_STORE_DIAG_ONLY 149 #define CONFIG_DFX_STORE_DIAG_ONLY DFX_NO 150 #endif 151 152 /* DFX模块内存统计 */ 153 #ifndef CONFIG_DFX_MEMORY_DEBUG 154 #define CONFIG_DFX_MEMORY_DEBUG DFX_YES 155 #endif 156 157 /* DFX模块HSO内存操作 */ 158 #ifndef CONFIG_DFX_MEMORY_OPERATE 159 #define CONFIG_DFX_MEMORY_OPERATE DFX_YES 160 #endif 161 162 /* DFX模块SDT内存操作 */ 163 #ifndef CONFIG_DFX_SDT_MEMORY_OPERATE 164 #define CONFIG_DFX_SDT_MEMORY_OPERATE DFX_YES 165 #endif 166 167 /* DFX模块SDT dump异常弹窗 */ 168 #ifndef CONFIG_DFX_SDT_DUMP_EXCEPTION 169 #define CONFIG_DFX_SDT_DUMP_EXCEPTION DFX_YES 170 #endif 171 172 /* DFX模块BT采样操作 */ 173 #ifndef CONFIG_DFX_BT_SAMPLE_DATA 174 #define CONFIG_DFX_BT_SAMPLE_DATA DFX_YES 175 #endif 176 177 /* DFX模块统计信息 */ 178 #ifndef CONFIG_DFX_STATS 179 #define CONFIG_DFX_STATS DFX_YES 180 #endif 181 182 /* DFX模块应答处理 */ 183 #ifndef CONFIG_DFX_IND_HANDLE 184 #define CONFIG_DFX_IND_HANDLE DFX_YES 185 #endif 186 187 #endif /* DFX_FEATURE_CONFIG_H */