]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blobdiff - pasdk/test_arm/framework/audioStreamDecodeProc.c
Circular buffer read cleanup from Build #38 (work on PASDK-53).
[processor-sdk/performance-audio-sr.git] / pasdk / test_arm / framework / audioStreamDecodeProc.c
index 38820aeb6a6d64f712329c81a800234ba9590cc2..62ce3f743c33d0384f6b66f791ec9ce4ea34dee6 100644 (file)
@@ -119,6 +119,10 @@ UInt32 gSlaveDecDecodeCnt       =0;
 UInt32 gSlaveDecDeactivateCnt   =0;
 
 
+// FL: (***) debug
+#include "evmc66x_gpio_dbg.h"
+
+
 /*
  *  ======== taskAsdpFxn ========
  *  Audio Stream Decode Processing task function
@@ -709,6 +713,7 @@ Void taskAsdpFxn(
                         //    Log_info0("capAfWrite() error");
                         //}                        
 
+                        GPIOSetOutput(GPIO_PORT_0, GPIO_PIN_107);
                         cbErrno = cbWriteAf(pCbCtl, z, pAfWrt);
                         if (cbErrno < 0)
                         {
@@ -730,8 +735,21 @@ Void taskAsdpFxn(
                                 }
                             }
                         }
+                        GPIOClearOutput(GPIO_PORT_0, GPIO_PIN_107);
                         TRACE_TERSE0("Dec:cbWriteAf() complete");
                         
+#if 1 // (***) FL: shows timing of CB write
+                        /// (***) debug // B9
+                        //{
+                        //    static Uint8 toggleState = 0;
+                        //    if (toggleState == 0)
+                        //        GPIOSetOutput(GPIO_PORT_0, GPIO_PIN_107);
+                        //    else
+                        //        GPIOClearOutput(GPIO_PORT_0, GPIO_PIN_107);
+                        //    toggleState = ~(toggleState);
+                        //}
+#endif        
+                        
                         // FL: debug, log circular buffer control variables
                         cbLog(pCbCtl, z, 1, "cbWriteAf");
                     }