comparison gsm-fw/L1/include/l1_trace.h @ 539:d8f39cef94d0

gsm-fw/L1/include/l1_trace.h: conditional maze reformatted for readability
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 02 Aug 2014 03:47:10 +0000
parents 93feb6393fe8
children
comparison
equal deleted inserted replaced
538:e23796f8bd47 539:d8f39cef94d0
52 52
53 #if (L1_BINARY_TRACE == 0) || (TRACE_TYPE == 5) 53 #if (L1_BINARY_TRACE == 0) || (TRACE_TYPE == 5)
54 54
55 #if (OP_L1_STANDALONE == 1) 55 #if (OP_L1_STANDALONE == 1)
56 56
57 #if (L1_DYN_DSP_DWNLD == 1 && CODE_VERSION == SIMULATION) 57 #if (L1_DYN_DSP_DWNLD == 1 && CODE_VERSION == SIMULATION)
58 58
59 #if (L1_FF_MULTIBAND == 0) 59 #if (L1_FF_MULTIBAND == 0)
60 #define DEFAULT_DYN_TRACE_CONFIG 0x00016AE7 // Dyn DWNLD (0x0001000) MP3 & MIDI traces activated (0x4000 and 0x2000) 60 // Dyn DWNLD (0x0001000) MP3 & MIDI traces activated (0x4000 and 0x2000)
61 #else 61 #define DEFAULT_DYN_TRACE_CONFIG 0x00016AE7
62 #define DEFAULT_DYN_TRACE_CONFIG ( 0x00016AE7 | (1<<L1_DYN_TRACE_MULTIBAND) ) 62 #else
63 #endif 63 #define DEFAULT_DYN_TRACE_CONFIG ( 0x00016AE7 | (1<<L1_DYN_TRACE_MULTIBAND) )
64 #endif
64 65
65 #else // Below for normal L1 standalone with dynamic download 66 #else // Below for normal L1 standalone with dynamic download
66 67
67 #if (L1_FF_MULTIBAND == 0) 68 #if (L1_FF_MULTIBAND == 0)
68 #define DEFAULT_DYN_TRACE_CONFIG 0x028A6AE7 // MP3 & MIDI traces activated (0x4000 and 0x2000) 69 // MP3 & MIDI traces activated (0x4000 and 0x2000)
69 #else 70 #define DEFAULT_DYN_TRACE_CONFIG 0x028A6AE7
70 #define DEFAULT_DYN_TRACE_CONFIG ( 0x028A6AE7 | (1<<L1_DYN_TRACE_MULTIBAND) ) 71 #else
71 #endif // L1_DYN_DSP_DWNLD == 1 && CODE_VERSION == SIMULATION 72 #define DEFAULT_DYN_TRACE_CONFIG ( 0x028A6AE7 | (1<<L1_DYN_TRACE_MULTIBAND) )
73 #endif // L1_FF_MULTIBAND
72 74
73 #endif // L1_DYN_DSP_DWNLD == 1 && CODE_VERSION == SIMULATION 75 #endif // L1_DYN_DSP_DWNLD == 1 && CODE_VERSION == SIMULATION
74 76
75 #elif (OP_WCP == 1) 77 #elif (OP_WCP == 1)
76 78
77 // WCP patch: default config is no Layer1 trace 79 // WCP patch: default config is no Layer1 trace
78 #define DEFAULT_DYN_TRACE_CONFIG 0x00000000 // default was 0x00000BB7 80 #define DEFAULT_DYN_TRACE_CONFIG 0x00000000 // default was 0x00000BB7
79 // End WCP patch 81 // End WCP patch
80 82
81 #else 83 #else
82 84
83 #if (L1_FF_MULTIBAND == 0) 85 #if (L1_FF_MULTIBAND == 0)
84 #define DEFAULT_DYN_TRACE_CONFIG 0x00881BB7 86 #define DEFAULT_DYN_TRACE_CONFIG 0x00881BB7
85 #else 87 #else
86 #define DEFAULT_DYN_TRACE_CONFIG ( 0x00881BB7 | (1<<L1_DYN_TRACE_MULTIBAND) ) 88 #define DEFAULT_DYN_TRACE_CONFIG ( 0x00881BB7 | (1<<L1_DYN_TRACE_MULTIBAND) )
87 #endif 89 #endif
88 90
89 #endif 91 #endif
90 92
91 // Possible EVENTS for L1S traces using TRACE_INFO. 93 // Possible EVENTS for L1S traces using TRACE_INFO.
92 //------------------------------------------------- 94 //-------------------------------------------------
111 #define NEW_TOA 18 113 #define NEW_TOA 18
112 #define TOA_NOT_UPDATED 19 114 #define TOA_NOT_UPDATED 19
113 #define IT_DSP_ERROR 20 115 #define IT_DSP_ERROR 20
114 #define TRACE_ADC 21 116 #define TRACE_ADC 21
115 #define PTCCH_DISABLED 22 117 #define PTCCH_DISABLED 22
116 #if (OP_L1_STANDALONE == 0) 118 #if (OP_L1_STANDALONE == 0)
117 #define DYN_TRACE_DEBUG 23 // Currently only work with TRACE_TYPE 4 119 #define DYN_TRACE_DEBUG 23 // Currently only work with TRACE_TYPE 4
118 #endif 120 #endif
119 #define DEDIC_TCH_BLOCK_STAT 24 121 #define DEDIC_TCH_BLOCK_STAT 24
120 #define DSP_TRACE_DISABLE 25 // Only works with TRACE_TYPE 1 or 4 122 #define DSP_TRACE_DISABLE 25 // Only works with TRACE_TYPE 1 or 4
121 #define DSP_TRACE_ENABLE 26 // Only works with TRACE_TYPE 1 or 4 123 #define DSP_TRACE_ENABLE 26 // Only works with TRACE_TYPE 1 or 4
122 #if (L1_AUDIO_MCU_ONOFF == 1) 124 #if (L1_AUDIO_MCU_ONOFF == 1)
123 #define L1_AUDIO_UL_ONOFF_TRACE 27 125 #define L1_AUDIO_UL_ONOFF_TRACE 27
132 134
133 #if(L1_PCM_EXTRACTION) 135 #if(L1_PCM_EXTRACTION)
134 #define L1S_PCM_ERROR_TRACE 35 136 #define L1S_PCM_ERROR_TRACE 35
135 #endif 137 #endif
136 #define IQ_LOW 36 138 #define IQ_LOW 36
137 #if FF_TBF //verify these event numbers 139 #if FF_TBF //verify these event numbers
138 #define NO_BLOCKS_PASSED_TO_L3 37 140 #define NO_BLOCKS_PASSED_TO_L3 37
139 #define LACK_FREE_RLC_BUFFER 38 141 #define LACK_FREE_RLC_BUFFER 38
140 #define RLC_BLOCK_OVERRUN 39 142 #define RLC_BLOCK_OVERRUN 39
141 #define EGPRS_IT_DSP_MISSING 40 143 #define EGPRS_IT_DSP_MISSING 40
142 #define EGPRS_IT_DSP_SPURIOUS 41 144 #define EGPRS_IT_DSP_SPURIOUS 41