diff gsm-fw/L1/cfile/l1_drive.c @ 553:e4feac5bc3ea

gsm-fw/L1/cfile/l1_drive.c: preliminary preen
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 04 Aug 2014 00:07:21 +0000
parents 67ab5f240b7d
children 44d30f013ee5
line wrap: on
line diff
--- a/gsm-fw/L1/cfile/l1_drive.c	Sun Aug 03 18:59:50 2014 +0000
+++ b/gsm-fw/L1/cfile/l1_drive.c	Mon Aug 04 00:07:21 2014 +0000
@@ -9,10 +9,9 @@
 
 #define  L1_DRIVE_C
 
-
+#include "config.h"
 #include "l1_confg.h"
 
-
 #if (RF_FAM == 61)
 #include "apc.h"
 #endif
@@ -107,7 +106,7 @@
   #endif
   #include "l1_defty.h"
   #include "l1_varex.h"
-  #include "cust_os.h"
+  #include "../../gpf/inc/cust_os.h"
   #include "l1_msgty.h"
   #if TESTMODE
     #include "l1tm_varex.h"
@@ -439,10 +438,10 @@
          Cust_get_ramp_tab(l1s_dsp_com.dsp_ndb_ptr->a_drp_ramp, txpwr, txpwr, radio_freq);
        #endif
     #else
-	   #if (CODE_VERSION != SIMULATION)
+       #if (CODE_VERSION != SIMULATION)
     /*** Reference to real ramp array (GSM: 15 power levels, 5-19, DCS: 16 power levels, 0-15) ***/
        Cust_get_ramp_tab(l1s_dsp_com.dsp_ndb_ptr->a_ramp, txpwr, txpwr, radio_freq);
-	   #endif
+       #endif
     #endif
 
     #if ((ANALOG == 1) || (ANALOG == 2) || (ANALOG == 3))
@@ -565,13 +564,13 @@
 
         /*** Reference to real ramp array (GSM: 15 power levels, 5-19, DCS: 16 power levels, 0-15) ***/
       #if(RF_FAM == 61)
-	   #if (DSP == 38) || (DSP == 39)
+       #if (DSP == 38) || (DSP == 39)
           Cust_get_ramp_tab(l1s_dsp_com.dsp_ndb_ptr->a_drp_ramp, txpwr, txpwr, radio_freq);
-	   #endif
-       #else
-	   #if (CODE_VERSION != SIMULATION)
+       #endif
+      #else
+       #if (CODE_VERSION != SIMULATION)
           Cust_get_ramp_tab(l1s_dsp_com.dsp_ndb_ptr->a_ramp, txpwr, txpwr, radio_freq);
-	   #endif
+       #endif
       #endif
 
       #if ((ANALOG == 1) || (ANALOG == 2) || (ANALOG == 3) ||(RF_FAM == 61))
@@ -692,7 +691,7 @@
                              UWORD8       reset_sacch,
                            #if !FF_L1_IT_DSP_DTX
                              UWORD8       vocoder_on)
-#else
+			   #else
                              UWORD8       vocoder_on,
                              BOOL         dtx_dsp_interrupt)
                            #endif
@@ -790,7 +789,7 @@
                              UWORD8       tch_loop,    UWORD8 sync_tch,
                            #if !FF_L1_IT_DSP_DTX
                              UWORD8       reset_sacch, UWORD8 vocoder_on)
-#else
+			   #else
                              UWORD8       reset_sacch, UWORD8 vocoder_on,
                              BOOL         dtx_dsp_interrupt)
                            #endif
@@ -1047,7 +1046,7 @@
      if(SWH_flag)
      {
         l1s_dsp_com.dsp_db_common_w_ptr->d_swh_ctrl_db |= (0x01<< B_SWH_DB);
-	 }
+     }
     }
     else
     {
@@ -1152,7 +1151,7 @@
     }
 
     // write dsp tasks.....
-    #if (DSP == 33) || (DSP == 34) || (DSP == 35) || (DSP == 36) || (DSP == 37) || (DSP == 38) || (DSP == 39)
+    #if (DSP >= 33)
       l1s_dsp_com.dsp_ndb_ptr->d_dsp_page = (API) dsp_task;
     #else
       l1s_dsp_com.dsp_param_ptr->d_dsp_page = (API) dsp_task;