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

📄 smdk2440_ov7620.h

📁 2440mmc-and-camera-linux-driver 2440mmc-and-camera-linux-driver
💻 H
字号:
#ifndef _SMDK2440_OV7620_H_#define _SMDK2440_OV7620_H_#define CHIP_DELAY 0xFFstatic struct ov7620_t {	int subaddr;	int value;} ov7620_reg[] = {	{0x12, 0x80},	// Camera Soft reset. Self cleared after reset.	{CHIP_DELAY, 10},	{0x00, 0x03},	// 	{0x01, 0x80},	// set blue gain	{0x02, 0x80},	// set red gain	{0x03, 0xb0},	// saturation control	{0x06, 0x60},	// set brightness - CJH	{0x0c, 0x24},	// set white balance blue background	{0x0d, 0x24},	// set white balance red background	{0x10, 0xff},	// set auto exposure time, brightness control - CJH	{0x11, (1<<7)+(0<<6)+(0x0)}, // HSYNC positive, CHSYNC negative, VSYNC posigive, 16 Bit : PCLK = CLK_in/((1+x)*2), 8 Bit : PCLK = CLK_in/(1+x)	{0x12, 0x74},	// mirror image, enable AGC/AWB, precise A/D black level compensation	{0x13, (0x1<<5)+(0x0<<4)+(0x1)},  // 8bit Data, CCIR601 Format	{0x15, 0x01},	// Use PCLK rising edge to latch data, UV data output: 16 Bit - UVUV..., 8 Bit - UYVY...	{0x16, 0x03},	// Field mode : 00-OFF mode, 01-ODD mode, 10-EVEN mode, 11-FRAME mode 	{0x17, 0x2f}, //47	{0x18, 0xcf}, // (207-47)*4=640		{0x19, 0x06}, // 6	{0x1a, 0xf5}, // (245-6+1)*2=480	{0x1b, 0x00},	// Pixel Shift	{0x20, 0x00},	// limit vertical size to 480, second stage aperture correction enable	{0x21, 0x80},	// Y Channel Offset Adjustment - 0 , direction - Subtract	{0x22, 0x80},	// U Channel Offset Adjustment - 0	{0x23, 0x00},	// Crystal Current control : maximum current	{0x26, 0xa2},	// Digital sharpness threshold, magnitude.	{0x27, 0xea},	// Disable CCIR rang clip	{0x29, 0x00},	// 	{0x2a, 0x00},	// frame rate high, 60Hz, 50Hz:0x80, UV delay 2 pixel. - CJH	{0x2b, 0x00},	// frame rate low, 60Hz, 50Hz:0xac	{0x2c, 0x88},	// 	{0x2e, 0x80},	// 	{0x2f, 0x44},	// 	{0x60, 0x27},	// 	{0x61, 0x82},	// 02?x.........................................	{0x62, 0x5f},	// 	{0x63, 0xd5},	// 	{0x64, 0x57},	// Enable Y Gamma	{0x65, 0x83},	// 	{0x66, 0x55},	// 	{0x68, 0xcf},	// 	{0x69, 0x76},	// 	{0x6a, 0x22},	// 	{0x6b, 0x00},	// 	{0x6c, 0x08},	// 	{0x6d, 0x48},	// 	{0x6e, 0x80},	// 	{0x6f, 0x0c},	// -CJH	{0x70, 0x89},	// -CJH	{0x71, 0x00},	//  freerun PCLK	{0x72, 0x14},	// 	{0x73, 0x54},	// 	{0x75, 0x0e},	// -CJH	{0x76, 0x00},	// 	{0x77, 0xff},	// 	{0x78, 0x80},	// 	{0x79, 0x80},	// 	{0x7a, 0x80},	// 	{0x7b, 0xe6},	// -CJH	{0x7c, 0x00},	// 	{0x13, 0x21},	// YUV 8bit format Enable AEC/AGC/AWB	{0x14, 0x94},	// turn off GAMMA - CJH	{0x24, 0x10},	// -CJH	{0x25, 0x8a},	// -CJH	{0x28, 0x20},	// Progressive mode.	{0x2d, 0x95},	//	{0x67, 0x92},	// 	{0x74, 0x00},	// -CJH};#define OV7620_INIT_REGS (sizeof(ov7620_reg)/sizeof(ov7620_reg[0]))#define OV7620_REGS 0x7F#endif /* _SMDK2440_OV7620_H_ */

⌨️ 快捷键说明

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