📄 main.c
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -