#define H_ACTIVE1 752//640*3
#define V_ACTIVE1 480//480
#define H_STRIDE1 752//640
#define H_ACTIVE0 752//640*3
#define V_ACTIVE0 480//480
#define H_STRIDE0 752//640
// Camera_osd_init();
tpg_init();
mix_init();
// Xil_Out32((VDMA_BASEADDR0 + 0x030), 0x108B);// enable circular mode
Xil_Out32((VDMA_BASEADDR0 + 0x030), 0x8B);// enable circular mode
Xil_Out32((VDMA_BASEADDR0 + 0x0AC), VIDEO_BASEADDR0); // start address
Xil_Out32((VDMA_BASEADDR0 + 0x0B0), VIDEO_BASEADDR1); // start address
Xil_Out32((VDMA_BASEADDR0 + 0x0B4), VIDEO_BASEADDR2); // start address
Xil_Out32((VDMA_BASEADDR0 + 0x0A8), (H_STRIDE0*3)); // h offset (640 * 4) bytes
Xil_Out32((VDMA_BASEADDR0 + 0x0A4), (H_ACTIVE0*3)); // h size (640 * 4) bytes
Xil_Out32((VDMA_BASEADDR0 + 0x0A0), V_ACTIVE0); // v size (480)
Xil_Out32((VDMA_BASEADDR0 + 0x000), 0x8B); // enable circular mode
Xil_Out32((VDMA_BASEADDR0 + 0x05c), VIDEO_BASEADDR0); // start address
Xil_Out32((VDMA_BASEADDR0 + 0x060), VIDEO_BASEADDR1); // start address
Xil_Out32((VDMA_BASEADDR0 + 0x064), VIDEO_BASEADDR2); // start address
Xil_Out32((VDMA_BASEADDR0 + 0x058), (H_STRIDE0*3)); // h offset (640 * 4) bytes
Xil_Out32((VDMA_BASEADDR0 + 0x054), (H_ACTIVE0*3)); // h size (640 * 4) bytes
Xil_Out32((VDMA_BASEADDR0 + 0x050), V_ACTIVE0); // v size (480)
// Xil_Out32((VDMA_BASEADDR1 + 0x030), 0x108B);// enable circular mode
Xil_Out32((VDMA_BASEADDR1 + 0x030), 0x8B);// enable circular mode
Xil_Out32((VDMA_BASEADDR1 + 0x0AC), VIDEO_BASEADDR3); // start address
Xil_Out32((VDMA_BASEADDR1 + 0x0B0), VIDEO_BASEADDR4); // start address
Xil_Out32((VDMA_BASEADDR1 + 0x0B4), VIDEO_BASEADDR5); // start address
Xil_Out32((VDMA_BASEADDR1 + 0x0A8), (H_STRIDE1*3)); // h offset (640 * 4) bytes
Xil_Out32((VDMA_BASEADDR1 + 0x0A4), (H_ACTIVE1*3)); // h size (640 * 4) bytes
Xil_Out32((VDMA_BASEADDR1 + 0x0A0), V_ACTIVE1); // v size (480)
Xil_Out32((VDMA_BASEADDR1 + 0x000), 0x8B); // enable circular mode
Xil_Out32((VDMA_BASEADDR1 + 0x05c), VIDEO_BASEADDR3); // start address
Xil_Out32((VDMA_BASEADDR1 + 0x060), VIDEO_BASEADDR4); // start address
Xil_Out32((VDMA_BASEADDR1 + 0x064), VIDEO_BASEADDR5); // start address
Xil_Out32((VDMA_BASEADDR1 + 0x058), (H_STRIDE1*3)); // h offset (640 * 4) bytes
Xil_Out32((VDMA_BASEADDR1 + 0x054), (H_ACTIVE1*3)); // h size (640 * 4) bytes
Xil_Out32((VDMA_BASEADDR1 + 0x050), V_ACTIVE1); // v size (480)
|