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

📄 main.c

📁 使用Usb cy7c68013与DSP通信
💻 C
字号:
/***************************************************************
//
// Name: 	BF533 video USB Transfer and MPEG4 compress system
//
/*****************************************************************************************

(C) Copyright 2004-tohope@zzuli .  All rights reserved.

File Name:				Main.c

Date Modified:			10/16/06		TL		Rev 0.01

Software:       		VisualDSP++3.1

Hardware:				BF533 EZ-KIT Board and My USB interface board

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).
						USB use PF interrupt to communicate with DSP.
***************************************************************/
//#include <services/services.h>      // system service includes
#include <cdefBF533.h>		//BF533 Register Pointer Definition
#include <stdio.h>
#include <sys\exception.h>		//Interrupt Handling Header

#include "ezkitutilities.h"

// Sets up here all Prototype Functions 
//void Init_EBIU(void);
//void Init_Flash(void);
void Init_ADV(void);
void Init_Interrupts(void);
void Init_SDRAM(void);
void Init_DMA(void);
void Init_PPI(void);
//void Init_PLL(void);


void main()
{
	volatile unsigned short *  pLED;
	int i = 1;
	int j=2;
	
 
 	ezConfigurePLL();
//	Init_PF();
//	Init_PLL();
    ezEnableVideoDecoder();	    //Link the ADV7183 clock to the PPI and ADV7183 reset
 //	Init_ADV();
 	printf("\n ADV Setup Lock Delay!\n"); //Gives the ADV7183 time to lock after reset
	
 	
// 	ezConfigureSDRAM();		//SDRAM Setup to store the video image
 	Init_SDRAM();
	Init_DMA();			//DMA Setup "PPI->DMA->SDRAM" Its configured in Stop Mode
	Init_PPI();			//PPI Setup
   	ezConfigureAsync();	//Async Memory Interface Setup
   	Init_Interrupts();	    //Enter an interrupt subroutine after DMA has been finished
  //	ezConfigureFlashA();	//Flash Setup to config the flash GPIOs
    //Init_Interrupts();	//Enter an interrupt subroutine after DMA has been finished
   // *pFlashA_PortB_Data=0xff;
   


   while(1)		
	{
	   

	}

}//end main

⌨️ 快捷键说明

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