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:
parent
e23fbcdf1e
commit
cf3ea2ed03
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue