Make OV7670 CLKRC configurable.

This commit is contained in:
iabdalkader 2021-05-26 21:24:16 +02:00
parent 8a01049f0e
commit b4eef0c5b6
2 changed files with 4 additions and 1 deletions

View File

@ -49,6 +49,9 @@
// Set which OV767x sensor is used
#define OMV_OV7670_VERSION (75)
// OV7670 clock divider
#define OMV_OV7670_CLKRC (0x01)
// Enable sensor features
#define OMV_ENABLE_OV5640_AF (0)

View File

@ -23,7 +23,7 @@
static const uint8_t default_regs[][2] = {
// OV7670 reference registers
{ CLKRC, 0x01 }, // Input clock / 2
{ CLKRC, OMV_OV7670_CLKRC },
{ TSLB, 0x04 },
{ COM7, 0x00 },
{ HSTART, 0x13 },