main.c

来自「TVP5150 视频解码芯片驱动包含I2C模拟 VDSP环境」· C语言 代码 · 共 34 行

C
34
字号
#include "I2C.h"
#include "init.h"


void main()
{

	int i = 0;
	unsigned char temp;
	unsigned char cache_1 ,cache_2;
	
	cache_1 = 0xb8;
	//setup
//	Init_PLL();
//	Init_EBIU();	//Async Memory Interface Setup
//	Init_ADV();		//Link the ADV7183 clock to the PPI and ADV7183 reset
	TVP5150_Reset(1);
	I2C_Init( cache_1 );
	TVP5150_Cnfg(1,5);
//	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 + =
减小字号Ctrl + -
显示快捷键?