From b6aa0f653b557453596da27ed43914266d0f2a66 Mon Sep 17 00:00:00 2001 From: Benjamin <88098139+Bexin3@users.noreply.github.com> Date: Sun, 3 Dec 2023 08:41:23 +0000 Subject: [PATCH] boards/ARDUINO_GIGA: Enable OV5640. Add support for OV5640 on GIGA R1 with AF enabled and highest stable clock. --- src/omv/boards/ARDUINO_GIGA/omv_boardconfig.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/omv/boards/ARDUINO_GIGA/omv_boardconfig.h b/src/omv/boards/ARDUINO_GIGA/omv_boardconfig.h index 2728d734b..809f27c24 100644 --- a/src/omv/boards/ARDUINO_GIGA/omv_boardconfig.h +++ b/src/omv/boards/ARDUINO_GIGA/omv_boardconfig.h @@ -37,6 +37,11 @@ #define OMV_MDMA_CHANNEL_JPEG_IN (7) // in has a lower pri than out #define OMV_MDMA_CHANNEL_JPEG_OUT (6) // out has a higher pri than in +// OV5640 sensor settings +#define OMV_OV5640_XCLK_FREQ (12000000) +#define OMV_OV5640_PLL_CTRL2 (0x90) +#define OMV_OV5640_PLL_CTRL3 (0x13) + // Enable additional GPIO banks. #define OMV_ENABLE_GPIO_BANK_F (1) #define OMV_ENABLE_GPIO_BANK_G (1) @@ -47,7 +52,7 @@ // Enable sensor drivers #define OMV_ENABLE_OV2640 (0) -#define OMV_ENABLE_OV5640 (0) +#define OMV_ENABLE_OV5640 (1) #define OMV_ENABLE_OV7670 (1) #define OMV_ENABLE_OV7690 (0) #define OMV_ENABLE_OV7725 (0) @@ -71,7 +76,7 @@ #define OMV_OV7670_CLKRC (0) // Enable sensor features -#define OMV_ENABLE_OV5640_AF (0) +#define OMV_ENABLE_OV5640_AF (1) // Enable WiFi debug #define OMV_ENABLE_WIFIDBG (0)