From: Ming Wei Date: Mon, 19 Nov 2018 23:39:01 +0000 (-0600) Subject: add UART terminal output "Test Passed", after 500 audio frames have been processed X-Git-Tag: DEV.AUDIO_PREPROC.01.05.00.00^2~1 X-Git-Url: https://git.ti.com/gitweb?p=processor-sdk%2Faudio-preprocessing.git;a=commitdiff_plain;h=a8e486e183773eae2f23a541e11cb4d56c231c69 add UART terminal output "Test Passed", after 500 audio frames have been processed for real time demos for K2G and OMAP-L137 Signed-off-by: Ming Wei --- diff --git a/realtime_demo_bios/k2g/src/mcasp_cfg.c b/realtime_demo_bios/k2g/src/mcasp_cfg.c index 4783502..467f1c8 100644 --- a/realtime_demo_bios/k2g/src/mcasp_cfg.c +++ b/realtime_demo_bios/k2g/src/mcasp_cfg.c @@ -598,7 +598,7 @@ void testRet(uint32_t status) * * \return Cmb_EOK on Success or error code */ -#define DUMP_SEC 5 +#define DUMP_SEC 10 #define FRAME_PER_SEC 100 int gAudDumpBufIdx = 0; unsigned char gAudDumpBuf[(BUFSIZE*RX_NUM_SERIALIZER)*FRAME_PER_SEC*DUMP_SEC]; @@ -901,6 +901,11 @@ Void Audio_echo_Task(void) gAudDumpBufIdx++; } + if (gAudDumpBufIdx==500) + { + UART_printf("\nTest Passed\n"); + } + #if (CMB_AUDIO_DAC) /* Issue full buffer to the output stream */ /* TX frame processing */ diff --git a/realtime_demo_bios/omapl137/src/audioSample_io.c b/realtime_demo_bios/omapl137/src/audioSample_io.c index 46fd391..509c704 100644 --- a/realtime_demo_bios/omapl137/src/audioSample_io.c +++ b/realtime_demo_bios/omapl137/src/audioSample_io.c @@ -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);