changeset 20:5fd4e7669c93

l1_confg.h: band-aid fix for DSP_DEBUG_TRACE_ENABLE with L1_DYN_DSP_DWNLD
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 10 Jun 2016 08:56:53 +0000
parents 12f6c51be7b3
children dfc7b0bc468a
files L1/include/l1_confg.h
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/L1/include/l1_confg.h	Fri Jun 10 07:53:54 2016 +0000
+++ b/L1/include/l1_confg.h	Fri Jun 10 08:56:53 2016 +0000
@@ -895,6 +895,19 @@
   #endif
 #endif // DSP
 
+/*
+ * FreeCalypso band-aid: when we build with MELODY_E2 disabled and
+ * DSP_DEBUG_TRACE_ENABLE gets set to 1 by the logic above as a result,
+ * but L1_DYN_DSP_DWNLD is enabled, some code in l1_sync.c fails to
+ * compile.  Our band-aid solution is to disable DSP_DEBUG_TRACE_ENABLE:
+ * after all, our TCS211 golden reference is built with MELODY_E2
+ * enabled, so it has DSP_DEBUG_TRACE_ENABLE set to 0.
+ */
+#if L1_DYN_DSP_DWNLD
+  #undef  DSP_DEBUG_TRACE_ENABLE
+  #define DSP_DEBUG_TRACE_ENABLE 0
+#endif
+
 /*------------------------------------*/
 /* Default value                      */
 /*------------------------------------*/