#include "sys_config.h" #include "typesdef.h" #include "lib/video/dvp/cmos_sensor/csi.h" #include "tx_platform.h" #include "list.h" #include "dev.h" #include "hal/i2c.h" #if DEV_SENSOR_BF3720 SENSOR_INIT_SECTION static const unsigned char BF3720InitTable[CMOS_INIT_LEN]= { // FAE provided config 0x12, 0x80,//84 //0x12 , 0x03,//00 0x15, 0x03, // vsync high, hsync high 0x3a, 0x00, // UYVY //0x09 , 0x10,//01??11 0x1b, 0x6e, //2F PLL 0x13, 0x80,//70 COM8[1]??0x13??=1??b0о????????????????? //????????????????????0x01??blue gain???? //0x02??red gain??????????????? 0x8c, 0x00, // 0x8d, 0x04, 0x87, 0x2a, //FF gloabl gain 0x13, 0x87,//07 COM8[1]??0x13??=1??b0о????????????????? //????????????????????0x01??blue gain???? //0x02??red gain??????????????? 0xbb, 0x20, // reserved 0x2f, 0x10, // 0x27, 0xc1, // reserved 0x16, 0x80, // reserved 0xe1, 0x98, // reserved 0xe4, 0x0f, // reserved 0xe3, 0x04, // reserved 0xec, 0xa8, // reserved 0x20, 0x40, // reserved 0xeb, 0xd5, // reserved 0xd2, 0x19, // gain diff ? 0x33, 0x80, // lens shading 0x34, 0x28, // lens shading 0x35, 0x34, // lens shading 0x65, 0x32, // lens shading 0x66, 0x30, // lens shading 0xf1, 0x00, // module by pass 0x24, 0x69,//82 AE_TAR1 ??A?????????? 0x97, 0x69,//78 AE_TAR2 A???????????? //0x55??BRIGHT bit[7]?????λ????bit[7]?0???????????? //??bit[7]?1???????????? 0x25, 0x88, // ae loc ? // 0x81, 0xff, // // 0x94, 0x82, //22 glb?? 0x82, 0x2a, //22 glb?? 0x83, 0x3a, //49 glb?? 0x84, 0x38, //32 glb?? 0x85, 0x41, //5E glb?? 0x86, 0x90, //A0 glb?? 0x8a, 0x9c, //C3 A6 50 hz banding filter // 0x8b, 0x9c, //BB 60 hz banding filter 0x39, 0x0f, //CF ee 0x98, 0x12, //02 windows select, weight select 0x3f, 0x48,//90??28??????1????7????0????ü?????????1[6:0]???????? //1:??????????????? 0x90, 0x30,//30 20 INT_TIM_TH ???е??????????????? 0x91, 0x20,//20 1c OFFSET_TH1 ??????int-tim