mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Enable additional GPIO ports for STM32F769xx only
This commit is contained in:
parent
339f5abe30
commit
177f24767b
@ -59,24 +59,22 @@ void HAL_MspInit(void)
|
||||
__GPIOD_CLK_ENABLE();
|
||||
__GPIOE_CLK_ENABLE();
|
||||
|
||||
#if defined(STM32F765xx) || defined(STM32F769xx)
|
||||
#if defined(STM32F769xx)
|
||||
__GPIOF_CLK_ENABLE();
|
||||
__GPIOG_CLK_ENABLE();
|
||||
__GPIOH_CLK_ENABLE();
|
||||
__GPIOI_CLK_ENABLE();
|
||||
__GPIOJ_CLK_ENABLE();
|
||||
__GPIOK_CLK_ENABLE();
|
||||
|
||||
/* Enable JPEG clock */
|
||||
__HAL_RCC_JPEG_CLK_ENABLE();
|
||||
#endif
|
||||
|
||||
/* Enable DMA clocks */
|
||||
__DMA1_CLK_ENABLE();
|
||||
__DMA2_CLK_ENABLE();
|
||||
|
||||
#if defined (STM32F769xx)
|
||||
/* Enable JPEG clock */
|
||||
__HAL_RCC_JPEG_CLK_ENABLE();
|
||||
#endif
|
||||
|
||||
/* Configure DCMI GPIO */
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
GPIO_InitStructure.Pull = GPIO_PULLDOWN;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user