add UART terminal output "Test Passed", after 500 audio frames have been processed
[processor-sdk/audio-preprocessing.git] / realtime_demo_bios / k2g / src / mcasp_cfg.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