📄 main.c
字号:
/*****************************************************************************************/
//
// Name: BF533 EZ-KIT video ITU-656 receive mode
//
/*****************************************************************************************
(C) Copyright 2006 - Analog Devices, Inc. All rights reserved.
File Name: Main.c
Date Modified: 10/25/04 Rev 0.2
Software: VisualDSP++4.5
Hardware: BF533 EZ-KIT 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).
******************************************************************************************/
#include <cdefBF533.h> //BF533 Register Pointer Definition
#include <stdio.h>
#include <sys\exception.h> //Interrupt Handling Header
// 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()
{
int i = 0;
//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
printf("\n ADV Setup Lock Delay!\n"); //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 configured in Stop Mode
Init_PPI(); //PPI Setup
while (1)
{
i = 1;
}
}//end main
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -