changeset 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 e23796f8bd47
children 99e44a92274c
files gsm-fw/L1/include/l1_trace.h
diffstat 1 files changed, 24 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/L1/include/l1_trace.h	Sat Aug 02 03:27:46 2014 +0000
+++ b/gsm-fw/L1/include/l1_trace.h	Sat Aug 02 03:47:10 2014 +0000
@@ -54,23 +54,25 @@
 
   #if (OP_L1_STANDALONE == 1)
 
-  #if (L1_DYN_DSP_DWNLD == 1 && CODE_VERSION == SIMULATION)
+    #if (L1_DYN_DSP_DWNLD == 1 && CODE_VERSION == SIMULATION)
       
-        #if (L1_FF_MULTIBAND == 0)              
-    #define DEFAULT_DYN_TRACE_CONFIG       0x00016AE7  // Dyn DWNLD (0x0001000) MP3 & MIDI traces activated (0x4000 and 0x2000)
-  #else
-          #define DEFAULT_DYN_TRACE_CONFIG       ( 0x00016AE7 | (1<<L1_DYN_TRACE_MULTIBAND) )          
-        #endif 
+      #if (L1_FF_MULTIBAND == 0)              
+        // Dyn DWNLD (0x0001000) MP3 & MIDI traces activated (0x4000 and 0x2000)
+        #define DEFAULT_DYN_TRACE_CONFIG       0x00016AE7
+      #else
+        #define DEFAULT_DYN_TRACE_CONFIG       ( 0x00016AE7 | (1<<L1_DYN_TRACE_MULTIBAND) )          
+      #endif 
         
-      #else // Below for normal L1 standalone with dynamic download
+    #else // Below for normal L1 standalone with dynamic download
       
-        #if (L1_FF_MULTIBAND == 0)   
-    #define DEFAULT_DYN_TRACE_CONFIG       0x028A6AE7  // MP3 & MIDI traces activated (0x4000 and 0x2000)
-        #else 
-          #define DEFAULT_DYN_TRACE_CONFIG       ( 0x028A6AE7 | (1<<L1_DYN_TRACE_MULTIBAND) )
-  #endif // L1_DYN_DSP_DWNLD == 1 && CODE_VERSION == SIMULATION
+      #if (L1_FF_MULTIBAND == 0)   
+        // MP3 & MIDI traces activated (0x4000 and 0x2000)
+        #define DEFAULT_DYN_TRACE_CONFIG       0x028A6AE7
+      #else 
+        #define DEFAULT_DYN_TRACE_CONFIG       ( 0x028A6AE7 | (1<<L1_DYN_TRACE_MULTIBAND) )
+      #endif // L1_FF_MULTIBAND
         
-      #endif // L1_DYN_DSP_DWNLD == 1 && CODE_VERSION == SIMULATION
+    #endif // L1_DYN_DSP_DWNLD == 1 && CODE_VERSION == SIMULATION
 
   #elif (OP_WCP == 1)
 
@@ -80,11 +82,11 @@
 
   #else  
   
-      #if (L1_FF_MULTIBAND == 0)   
-    #define DEFAULT_DYN_TRACE_CONFIG       0x00881BB7
-      #else
-          #define DEFAULT_DYN_TRACE_CONFIG       ( 0x00881BB7 | (1<<L1_DYN_TRACE_MULTIBAND) )
-      #endif
+    #if (L1_FF_MULTIBAND == 0)   
+      #define DEFAULT_DYN_TRACE_CONFIG       0x00881BB7
+    #else
+      #define DEFAULT_DYN_TRACE_CONFIG       ( 0x00881BB7 | (1<<L1_DYN_TRACE_MULTIBAND) )
+    #endif
 
   #endif
 
@@ -113,9 +115,9 @@
   #define IT_DSP_ERROR           20
   #define TRACE_ADC              21
   #define PTCCH_DISABLED         22
- #if (OP_L1_STANDALONE == 0)
-    #define DYN_TRACE_DEBUG        23 // Currently only work with TRACE_TYPE 4
-#endif
+  #if (OP_L1_STANDALONE == 0)
+    #define DYN_TRACE_DEBUG      23 // Currently only work with TRACE_TYPE 4
+  #endif
   #define DEDIC_TCH_BLOCK_STAT   24
   #define DSP_TRACE_DISABLE      25 // Only works with TRACE_TYPE 1 or 4
   #define DSP_TRACE_ENABLE       26 // Only works with TRACE_TYPE 1 or 4
@@ -134,7 +136,7 @@
   #define L1S_PCM_ERROR_TRACE    35
 #endif
   #define IQ_LOW                 36
-   #if FF_TBF //verify these event numbers
+  #if FF_TBF //verify these event numbers
     #define NO_BLOCKS_PASSED_TO_L3            37
     #define LACK_FREE_RLC_BUFFER              38
     #define RLC_BLOCK_OVERRUN                 39