diff src/cs/layer1/cfile/l1_init.c @ 395:11e279107681

Magnetite fw can now be compiled to target Calypso C05 (F741979B) silicon
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 18 Jan 2018 00:03:48 +0000
parents 50a15a54801e
children f12872b7eb21
line wrap: on
line diff
--- a/src/cs/layer1/cfile/l1_init.c	Wed Jan 17 22:53:14 2018 +0000
+++ b/src/cs/layer1/cfile/l1_init.c	Thu Jan 18 00:03:48 2018 +0000
@@ -515,13 +515,15 @@
       l1s_dsp_com.dsp_ndb_ptr->a_d_macc_thr_ahs[5]=1500;
     #endif
 
-    // init of of the threshold for USF detection
-    #if 1	/* match TCS211 object */
-      l1s_dsp_com.dsp_ndb_ptr->d_thr_usf_detect = 2140;
-    #elif (L1_FALSE_USF_DETECTION == 1)
-      l1s_dsp_com.dsp_ndb_ptr->d_thr_usf_detect = 2300;
-    #else
-      l1s_dsp_com.dsp_ndb_ptr->d_thr_usf_detect = 0;
+    #if (DSP >= 34)
+      // init of of the threshold for USF detection
+      #if 1	/* match TCS211 object */
+        l1s_dsp_com.dsp_ndb_ptr->d_thr_usf_detect = 2140;
+      #elif (L1_FALSE_USF_DETECTION == 1)
+        l1s_dsp_com.dsp_ndb_ptr->d_thr_usf_detect = 2300;
+      #else
+        l1s_dsp_com.dsp_ndb_ptr->d_thr_usf_detect = 0;
+      #endif
     #endif
 
     #if (CHIPSET == 12) || (CHIPSET == 15)