changeset 25:85b080d6fb39

L1/cfile/l1_{cmplx,init}.c: support for feature tch-reroute re-added
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 11 Jun 2016 05:51:09 +0000
parents da9056962fb7
children 51e1a3b213a3
files L1/cfile/l1_cmplx.c L1/cfile/l1_init.c
diffstat 2 files changed, 19 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/L1/cfile/l1_cmplx.c	Sat Jun 11 05:14:36 2016 +0000
+++ b/L1/cfile/l1_cmplx.c	Sat Jun 11 05:51:09 2016 +0000
@@ -234,6 +234,11 @@
   UWORD8 input_level_flag, UWORD8 input_level, UWORD16 radio_freq, UWORD8 if_threshold);
 #endif
 
+#if FEATURE_TCH_REROUTE
+extern BOOL tch_reroute_downlink;
+extern void tch_send_downlink_bits(API *dsp_buffer);
+extern void tch_substitute_uplink(API *dsp_buffer);
+#endif
 
 //#pragma DUPLICATE_FOR_INTERNAL_RAM_END
 
@@ -5116,6 +5121,10 @@
           }
           #endif
         }
+#if FEATURE_TCH_REROUTE
+        else
+          tch_substitute_uplink(l1s_dsp_com.dsp_ndb_ptr->a_du_1);
+#endif
       }
     }
 
@@ -9452,6 +9461,11 @@
               }
             #endif
 
+            #if FEATURE_TCH_REROUTE
+              if (tch_reroute_downlink)
+                tch_send_downlink_bits(l1s_dsp_com.dsp_ndb_ptr->a_dd_0);
+            #endif
+
             if(channel_mode == TCH_24F_MODE)
             {
               #if IDS
--- a/L1/cfile/l1_init.c	Sat Jun 11 05:14:36 2016 +0000
+++ b/L1/cfile/l1_init.c	Sat Jun 11 05:51:09 2016 +0000
@@ -1876,10 +1876,13 @@
   #if TRACE_TYPE==3
     reset_stats();
   #endif
- #if(OP_L1_STANDALONE == 1 || L1_NAVC == 1 )//NAVC
+  #if(OP_L1_STANDALONE == 1 || L1_NAVC == 1 )//NAVC
     Cust_navc_ctrl_status(1);//start - NAVC
- #endif//end of (OP_L1_STANDALONE == 1 || L1_NAVC == 1 )
+  #endif//end of (OP_L1_STANDALONE == 1 || L1_NAVC == 1 )
 
+  #if FEATURE_TCH_REROUTE
+    feature_tch_reroute_init();
+  #endif
 }
 
 /*-------------------------------------------------------*/