changeset 46:da708f6be90f

l1_api_hisr.c made to match the original
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Fri, 04 Mar 2016 05:00:14 +0000
parents 576e684603e0
children 138d181bead9
files chipsetsw/layer1/cfile/l1_api_hisr.c
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/chipsetsw/layer1/cfile/l1_api_hisr.c	Fri Mar 04 04:41:52 2016 +0000
+++ b/chipsetsw/layer1/cfile/l1_api_hisr.c	Fri Mar 04 05:00:14 2016 +0000
@@ -140,6 +140,8 @@
 #endif // (L1_MP3 == 1) || (L1_MIDI == 1) || (L1_DYN_DSP_DWNLD == 1)
 #endif //(FF_L1_IT_DSP_USF == 1) || //(FF_L1_IT_DSP_DTX == 1)
 
+#if 0	/* FreeCalypso Frankenstein */
+/* This is the original LoCosto code */
 
 //When Fast USF is not enabled, then the API HISR needs to be called every time the DSP 
 //sends a HINT interrupt.
@@ -150,6 +152,18 @@
 #endif
 //NU_Activate_HISR(&apiHISR); //hack remove
   return;
+
+#else
+
+/* reconstruction of what the TCS211 code was probably like */
+#if (L1_DYN_DSP_DWNLD == 1)
+  if( l1_apihisr.dyn_dwnld.running == TRUE )
+  {
+    NU_Activate_HISR(&apiHISR); 
+  }
+#endif
+
+#endif
 }
 
 /*-------------------------------------------------------------*/
@@ -192,6 +206,7 @@
 
 }
 
+#if 0	/* FreeCalypso */
 /*-------------------------------------------------------------*/
 /* api_modem_hisr()                                            */
 /*-------------------------------------------------------------*/
@@ -228,6 +243,7 @@
   }
 #endif
 }
+#endif	/* FreeCalypso */
 
 /*-------------------------------------------------------------*/
 /* l1_trigger_api_interrupt()                                  */