mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Fix DCMI init struct for OMV7.
This commit is contained in:
parent
7499062bda
commit
839523bd90
@ -109,6 +109,12 @@ static int dcmi_config(uint32_t jpeg_mode)
|
|||||||
DCMIHandle.Init.CaptureRate = DCMI_CR_ALL_FRAME; // Capture rate all frames
|
DCMIHandle.Init.CaptureRate = DCMI_CR_ALL_FRAME; // Capture rate all frames
|
||||||
DCMIHandle.Init.ExtendedDataMode = DCMI_EXTEND_DATA_8B; // Capture 8 bits on every pixel clock
|
DCMIHandle.Init.ExtendedDataMode = DCMI_EXTEND_DATA_8B; // Capture 8 bits on every pixel clock
|
||||||
DCMIHandle.Init.JPEGMode = jpeg_mode; // Set JPEG Mode
|
DCMIHandle.Init.JPEGMode = jpeg_mode; // Set JPEG Mode
|
||||||
|
#if defined(STM32F769xx)
|
||||||
|
DCMIHandle.Init.ByteSelectMode = DCMI_BSM_ALL; // Capture all received bytes
|
||||||
|
DCMIHandle.Init.ByteSelectStart = DCMI_OEBS_ODD; // Ignored
|
||||||
|
DCMIHandle.Init.LineSelectMode = DCMI_LSM_ALL; // Capture all received lines
|
||||||
|
DCMIHandle.Init.LineSelectStart = DCMI_OELS_ODD; // Ignored
|
||||||
|
#endif
|
||||||
|
|
||||||
// Associate the DMA handle to the DCMI handle
|
// Associate the DMA handle to the DCMI handle
|
||||||
__HAL_LINKDMA(&DCMIHandle, DMA_Handle, DMAHandle);
|
__HAL_LINKDMA(&DCMIHandle, DMA_Handle, DMAHandle);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user