vprocss: Add 2 sec wait to example design source files

VTC in example design has switched to a slower 9MHz clock.This
essentially provides < 2fps frame rate. Vidout needs 3-4 frames
to acquire lock. After vpss configuration wait for 2 sec (mb_sleep)
before checking for vidout lock

Signed-off-by: Rohit Consul <rohit.consul@xilinx.com>
Acked-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
This commit is contained in:
Rohit Consul 2015-09-09 16:44:15 -07:00 committed by Nava kishore Manne
parent e23fbcdf1e
commit cf3ea2ed03

View file

@ -4,6 +4,7 @@
#include "xparameters.h"
#include "system.h"
#include "xvprocss_vdma.h"
#include "microblaze_sleep.h"
#define XVPROCSS_SW_VER "v1.00"
#define VERBOSE_MODE 0
@ -114,8 +115,13 @@ int main(void)
XPeriph_TpgDbgReportStatus(PeriphPtr);
#endif
/* vtc is running at 9Mhz essentially providing < 2fps frame rate
* Need to wait for 3-4 frames (~2sec) for vidout to acquire lock
*/
xil_printf("\r\nWaiting for output to lock: ");
MB_Sleep(2000);
/* check for output lock */
Timeout = VIDEO_MONITOR_LOCK_TIMEOUT;
while(!Lock && Timeout)
{