合众达DM642程序注释
2019-07-13 19:09发布
生成海报
-
-
-
-
-
-
-
-
-
-
-
#include /* 总库,提供外设接口和基本配置 */
-
-
#include /* emifa是一种64位的外部接口,可连接64/32/16/8bit的器件 */
-
#include /* 一种两线式串行总线 */
-
#include /* 也是一种通用的输入输出接口 */
-
#include /* 一些基本中断的定义 */
-
#include
-
#include
-
#include "iic.h"
-
#include "vportcap.h"
-
#include "vportdis.h"
-
#include "sa7121h.h" /* SAA7121可以将数字信号编程模拟信号和下面的编码芯片一样都采用iic总线 */
-
#include "TVP51xx.h" /* 视频编码芯片,将模拟信号进行数字化,这是其进行配置的头文件 */
-
-
EMIFA_Config Seeddm642ConfigA ={
-
0x00052078,
-
-
0xffffffd3,
-
-
0x73a28e01,
-
-
-
-
-
-
-
-
-
-
0x22a28a22,
-
0x22a28a42,
-
0x57115000,
-
0x0000081b,
-
0x001faf4d,
-
0x00000002,
-
0x00000002,
-
0x00000002,
-
0x00000073
-
};
-
-
I2C_Config SEEDDM642IIC_Config = {
-
0,
-
0,
-
(20-5),
-
(20-5),
-
1,
-
0,
-
0x4ea0,
-
-
-
-
(75-1),
-
};
-
CHIP_Config SEEDDM642percfg = {
-
CHIP_VP2+/
-
CHIP_VP1+/
-
CHIP_VP0+/
-
CHIP_I2C
-
};
-
I2C_Handle hSeeddm642i2c;
-
int portNumber;
-
extern SA7121H_ConfParams sa7121hPAL[45];
-
extern SA7121H_ConfParams sa7121hNTSC[45];
-
Uint8 vFromat = 0;
-
Uint8 misc_ctrl = 0x6D;
-
Uint8 output_format = 0x47;
-
-
Uint8 input_sel = 0x00;
-
-
Uint8 pin_cfg = 0x02;
-
-
Uint8 chro_ctrl_2 = 0x14;
-
-
VP_Handle vpHchannel0;
-
VP_Handle vpHchannel1;
-
VP_Handle vpHchannel2;
-
-
int numPixels = 720;
-
int numLines = 576;
-
-
-
-
-
-
int intAPixels = 190;
-
int intALines = 59;
-
int intDPixels = 530;
-
int intDLines = 229;
-
-
-
void drawRectangle();
-
-
void removeColor();
-
-
Uint32 capYbuffer = 0x80000000;
-
打开微信“扫一扫”,打开网页后点击屏幕右上角分享按钮