⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main_control.c.bak

📁 基于BF533的视频采集及显示
💻 BAK
字号:
/*****************************************************************************************/
//
// Name: 	BF533 Object Tracking
//
/*****************************************************************************************

File Name:				Main_ConTrol.c

Special Connections:  	Connect a CVBS video source to the right bottom video jack "AVIN1"
                        change switch #6 of SW3 to on of the ADSP-BF533 EZ-KIT Lite.
					
Purpose:				After reset the ADV7183 is configured to output digital
						video data in ITU656 mode 8bits wide. Additionally, The DSP is 
						configured to receive video data in ITU-656 format via the PPI Interface.
						The DMA channel 0 is dedicated to transfer the data to the 
						external SDRAM immediately (Address 0x0). 

******************************************************************************************/


#include <cdefBF533.h>		    //BF533 Register Pointer Definition
#include <stdio.h>
#include <sys\exception.h>		//Interrupt Handling Header

#include "Main_Control.h"
#include "DMA_Config.h"
#include "Flash_Setup.h"
#include "ISR_Config.h"
#include "PLL_Setup.h"
#include "PPI_Config.h"
#include "SDRAM_Config.h"
#include "Ob_Track.h"


void main()
{

	int i,j;
	/*------------------------------------------------*/
	//setup;
	Init_PLL();
	Init_EBIU();	    //Async Memory Interface Setup
	Init_Flash();	    //Flash Setup to config the flash GPIOs
	Init_ADV();	        //Link the ADV7183 clock to the PPI and ADV7183 reset
	
	for(i=0;i<5;i++) {j=0;}//Gives the ADV7183 time to lock after reset

	Init_Interrupts();	//Enter an interrupt subroutine after DMA has been finished
	Init_SDRAM();		//SDRAM Setup to store the video image
	Init_DMA();         //DMA Setup "PPI->DMA->SDRAM" Its conigured in Sotp Mode	
	Init_PPI();			//PPI Setup
	/*------------------------------------------------*/
	//process;
	/*DataSample(pVideoTempF1,pVideoSourceV1,720,288);
	DataSample(pVideoTempF2,pVideoSourceV3,720,288);
	DataSample(pVideoTempF3,pVideoSourceV5,720,288);
	
	MinusDIB(pVideoTempF2,pVideoTempF3,180,144);*/
	//MinusDIB(pVideoTempF3,pVideoTempF1,180,144);
	//MinusDIB(pVideoTempF2,pVideoTempF3,180,144);
	
	/*SobelDIB(lptemp1,lptemp2, lpresult);
	MaxSobel(lptemp2, lpresult,lptemp1);
	Threshold(lptemp1,lpresult);
	Multiply(lpsource,lpresult);
	SobelDIB(lpresult,lptemp1,lptemp2);
	MaxSobel( lptemp1,lptemp2,lpresult);
	Threshold(lpresult,lptemp1);
	MedianFilter(lptemp1,lpresult);
	ErosionDIB(lpresult,lptemp1);
	DilationDIB(lptemp1,lpresult);
	RegionMerge(lpresult,lptemp1,lpfeature);*/
	
	while (1)
	{  	
		i=1;		
	}

}


	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -