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 #include "lega_dbg.h" 17 18 uint32_t GlobalDebugComponents = 0xFFFFFFFF; 19 uint32_t GlobalDebugLevel = D_ERR; 20 uint8_t GlobalDebugEn = 1; 21 22 char uwifi_m[6] = "uwifi"; 23 char lwifi_m[6] = "lwifi"; 24 char lwip_m[5] = "Lwip"; 25 char os_m[3] = "OS"; 26 char at_m[3] = "AT"; 27 char other_m[6] = "Other"; 28 component_info(uint32_t module_t)29char *component_info(uint32_t module_t) 30 { 31 if (module_t &LWIFI_COMP) { 32 return lwifi_m; 33 } else if (module_t &UWIFI_COMP) { 34 return uwifi_m; 35 } else if (module_t &OS_COMP) { 36 return os_m; 37 } else if (module_t &LWIP_COMP) { 38 return lwip_m; 39 } else if (module_t &AT_COMP) { 40 return at_m; 41 } 42 43 return other_m; 44 } 45