Merge pull request #959 from openmv/fix_dcmi_gpio

Fix build error if no DCMI GPIOs are defined.
This commit is contained in:
Ibrahim Abd Elkader 2020-11-12 23:45:28 +02:00 committed by GitHub
commit ff8fced582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,6 +132,7 @@ void HAL_MspInit(void)
__HAL_RCC_JPGDECEN_CLK_ENABLE();
#endif
#if defined(DCMI_RESET_PIN) || defined(DCMI_PWDN_PIN) || defined(DCMI_FSYNC_PIN)
/* Configure DCMI GPIO */
GPIO_InitTypeDef GPIO_InitStructure;
GPIO_InitStructure.Pull = GPIO_PULLDOWN;
@ -152,6 +153,8 @@ void HAL_MspInit(void)
GPIO_InitStructure.Pin = DCMI_FSYNC_PIN;
HAL_GPIO_Init(DCMI_FSYNC_PORT, &GPIO_InitStructure);
#endif
#endif // DCMI_RESET_PIN || DCMI_PWDN_PIN || DCMI_FSYNC_PIN
}
void HAL_I2C_MspInit(I2C_HandleTypeDef *hi2c)