Mirror/VFLIP when building for OMV2

This commit is contained in:
iabdalkader 2014-09-03 23:47:09 +02:00
parent c12f559d62
commit cf9be6bf71
2 changed files with 6 additions and 2 deletions

View File

@ -21,7 +21,11 @@ static const uint8_t default_regs[][2] = {
{ 0x3c, 0x32 },
{ CLKRC, 0x80 }, /* Set PCLK divider */
{ COM2, COM2_OUT_DRIVE_3x }, /* Output drive x2 */
{ REG04, REG04_SET(REG04_HREF_EN)}, /* Mirror/VFLIP/AEC[1:0] */
#ifdef OPENMV2
{ REG04, 0xF8}, /* Mirror/VFLIP/AEC[1:0] */
#else
{ REG04_SET(REG04_HREF_EN)},
#endif
{ COM8, COM8_SET(COM8_BNDF_EN | COM8_AGC_EN | COM8_AEC_EN) },
{ COM9, COM9_AGC_SET(COM9_AGC_GAIN_8x)},
{ 0x2c, 0x0c },

View File

@ -133,7 +133,7 @@
#define HISTO_HIGH 0x62
#define REG04 0x04
#define REG04_DEFAULT 0x20
#define REG04_DEFAULT 0x28
#define REG04_HFLIP_IMG 0x80
#define REG04_VFLIP_IMG 0x40
#define REG04_VREF_EN 0x10