add UART terminal output "Test Passed", after 500 audio frames have been processed
authorMing Wei <mwei@ti.com>
Mon, 19 Nov 2018 23:39:01 +0000 (17:39 -0600)
committerMing Wei <mwei@ti.com>
Mon, 19 Nov 2018 23:39:01 +0000 (17:39 -0600)
for real time demos for K2G and OMAP-L137

Signed-off-by: Ming Wei <mwei@ti.com>
realtime_demo_bios/k2g/src/mcasp_cfg.c
realtime_demo_bios/omapl137/src/audioSample_io.c

index 4783502efb2e2641dde7b147665438b0dd8dd042..467f1c89dbddf3941cfb40e10fe97515c65c89e1 100644 (file)
@@ -598,7 +598,7 @@ void testRet(uint32_t status)
  *\r
  *  \return    Cmb_EOK on Success or error code\r
  */\r
-#define DUMP_SEC                       5\r
+#define DUMP_SEC                       10\r
 #define FRAME_PER_SEC          100\r
 int gAudDumpBufIdx = 0;\r
 unsigned char gAudDumpBuf[(BUFSIZE*RX_NUM_SERIALIZER)*FRAME_PER_SEC*DUMP_SEC];\r
@@ -901,6 +901,11 @@ Void Audio_echo_Task(void)
                        gAudDumpBufIdx++;\r
         }\r
 \r
+               if (gAudDumpBufIdx==500)\r
+               {\r
+                       UART_printf("\nTest Passed\n");\r
+               }\r
+               \r
 #if (CMB_AUDIO_DAC)\r
         /* Issue full buffer to the output stream                             */\r
         /* TX frame processing */\r
index 46fd391e8de3fb53d76d791fb46df431be6fd6dd..509c70409a434ba834a30dcd9a8ffe3bd9237ec2 100644 (file)
@@ -941,7 +941,10 @@ Void Audio_echo_Task()
                profiling_start();
 #endif
                total_frames_sent++;
-               
+               if (total_frames_sent==500)
+               {
+                       UART_printf("\nTest Passed\n");
+               }               
 }
        
            MCASP_log("\nTotal %d frames sent",total_frames_sent);