mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #959 from openmv/fix_dcmi_gpio
Fix build error if no DCMI GPIOs are defined.
This commit is contained in:
commit
ff8fced582
@ -132,6 +132,7 @@ void HAL_MspInit(void)
|
|||||||
__HAL_RCC_JPGDECEN_CLK_ENABLE();
|
__HAL_RCC_JPGDECEN_CLK_ENABLE();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(DCMI_RESET_PIN) || defined(DCMI_PWDN_PIN) || defined(DCMI_FSYNC_PIN)
|
||||||
/* Configure DCMI GPIO */
|
/* Configure DCMI GPIO */
|
||||||
GPIO_InitTypeDef GPIO_InitStructure;
|
GPIO_InitTypeDef GPIO_InitStructure;
|
||||||
GPIO_InitStructure.Pull = GPIO_PULLDOWN;
|
GPIO_InitStructure.Pull = GPIO_PULLDOWN;
|
||||||
@ -152,6 +153,8 @@ void HAL_MspInit(void)
|
|||||||
GPIO_InitStructure.Pin = DCMI_FSYNC_PIN;
|
GPIO_InitStructure.Pin = DCMI_FSYNC_PIN;
|
||||||
HAL_GPIO_Init(DCMI_FSYNC_PORT, &GPIO_InitStructure);
|
HAL_GPIO_Init(DCMI_FSYNC_PORT, &GPIO_InitStructure);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif // DCMI_RESET_PIN || DCMI_PWDN_PIN || DCMI_FSYNC_PIN
|
||||||
}
|
}
|
||||||
|
|
||||||
void HAL_I2C_MspInit(I2C_HandleTypeDef *hi2c)
|
void HAL_I2C_MspInit(I2C_HandleTypeDef *hi2c)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user