changeset 182:6a71281f0d82

l1audio_init.c fully reconstructed, matches TCS211 object
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 08 Jun 2016 00:41:23 +0000
parents 3c9aaec4eb88
children da456a8864f6
files chipsetsw/layer1/audio_cfile/l1audio_init.c
diffstat 1 files changed, 9 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/chipsetsw/layer1/audio_cfile/l1audio_init.c	Wed Jun 08 00:23:41 2016 +0000
+++ b/chipsetsw/layer1/audio_cfile/l1audio_init.c	Wed Jun 08 00:41:23 2016 +0000
@@ -171,6 +171,12 @@
   {
     UWORD8  i, j;
 
+    //-----------------------------------
+    // AUDIO control words initialization
+    //-----------------------------------
+    l1s_dsp_com.dsp_ndb_ptr->d_toneskb_init     = 0;             // MCU/DSP audio task com. register
+    l1s_dsp_com.dsp_ndb_ptr->d_toneskb_status   = 0;             // MCU/DSP audio task com. register
+
     #if (KEYBEEP)
       l1s_dsp_com.dsp_ndb_ptr->d_k_x1_kt0       = 0;             // keybeep variable
       l1s_dsp_com.dsp_ndb_ptr->d_k_x1_kt1       = 0;             // keybeep variable
@@ -332,6 +338,9 @@
         l1s_dsp_com.dsp_ndb_ptr->a_melody_e2_instrument_ptr[i]  = 0x0000;
       }
 
+      /* FreeCalypso: reconstructed from disassembly of TCS211 object */
+      l1s_dsp_com.dsp_ndb_ptr->d_melody_e2_deltatime = 0;
+
       // Reset the flag to know if the DSP melody E2 task runs
       l1s.melody_e2.dsp_task = FALSE;
     #endif // MELODY_E2
@@ -342,12 +351,6 @@
       l1s_dsp_com.dsp_ndb_ptr->d_melody_selection = NO_MELODY_SELECTED;
     #endif
 
-    //-----------------------------------
-    // AUDIO control words initialization
-    //-----------------------------------
-    l1s_dsp_com.dsp_ndb_ptr->d_toneskb_init     = 0;             // MCU/DSP audio task com. register
-    l1s_dsp_com.dsp_ndb_ptr->d_toneskb_status   = 0;             // MCU/DSP audio task com. register
-
 
     #if ((CHIPSET == 4) || (CHIPSET == 12) || (CHIPSET == 15) || ((CHIPSET==10) && (OP_WCP==1))) && ((DSP == 36) || (DSP == 37) || (DSP == 38) || (DSP == 39))
       l1s_dsp_com.dsp_ndb_ptr->d_es_ctrl            = 0;             // ES control