changeset 114:f489cc385306

l1_init.c: l1_initialize_var() reconstructed
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sat, 09 Apr 2016 02:00:58 +0000
parents 50187ed1cd7d
children 37e5f069671d
files chipsetsw/layer1/cfile/l1_init.c
diffstat 1 files changed, 13 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/chipsetsw/layer1/cfile/l1_init.c	Fri Apr 08 20:54:26 2016 +0000
+++ b/chipsetsw/layer1/cfile/l1_init.c	Sat Apr 09 02:00:58 2016 +0000
@@ -9,7 +9,9 @@
 
 #define  L1_INIT_C
 
-  #include "l1_confg.h"
+#include "l1_confg.h"
+
+#define	W_A_DSP_PR20037	1	/* FreeCalypso */
 
 #if (CODE_VERSION == SIMULATION)
   #include <string.h>
@@ -1413,21 +1415,21 @@
   l1a_l1s_com.dedic_set.fset        = NULL;
   l1a_l1s_com.dedic_set.SignalCode  = 0;
   l1a_l1s_com.dedic_set.sync_tch    = 0;
+  l1a_l1s_com.dedic_set.reset_facch = FALSE;
   l1a_l1s_com.dedic_set.stop_tch    = 0;
-  l1a_l1s_com.dedic_set.reset_facch = FALSE;
 #if (FF_L1_TCH_VOCODER_CONTROL)
   l1a_l1s_com.dedic_set.reset_sacch = FALSE;
-#if (L1_VOCODER_IF_CHANGE == 0)
-  l1a_l1s_com.dedic_set.vocoder_on = TRUE;
-  #if (W_A_DSP_PR20037 == 1)
-    l1a_l1s_com.dedic_set.start_vocoder = TCH_VOCODER_ENABLE_REQ;
-  #else // W_A_DSP_PR20037 == 0
-    l1a_l1s_com.dedic_set.start_vocoder = FALSE;
-  #endif // W_A_DSP_PR20037
-#else // L1_VOCODER_IF_CHANGE
+  #if (L1_VOCODER_IF_CHANGE == 0)
+    l1a_l1s_com.dedic_set.vocoder_on = TRUE;
+    #if (W_A_DSP_PR20037 == 1)
+      l1a_l1s_com.dedic_set.start_vocoder = TCH_VOCODER_ENABLE_REQ;
+    #else // W_A_DSP_PR20037 == 0
+      l1a_l1s_com.dedic_set.start_vocoder = FALSE;
+    #endif // W_A_DSP_PR20037
+  #else // L1_VOCODER_IF_CHANGE
     l1a_l1s_com.dedic_set.vocoder_on = FALSE;
     l1a_l1s_com.dedic_set.start_vocoder = TCH_VOCODER_RESET_COMMAND;
-#endif // L1_VOCODER_IF_CHANGE
+  #endif // L1_VOCODER_IF_CHANGE
 #endif // FF_L1_TCH_VOCODER_CONTROL
 
   l1a_l1s_com.dedic_set.radio_freq       = 0;