mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Fix H7 build.
This commit is contained in:
parent
57b8ba2cda
commit
7cec96a9db
@ -585,7 +585,9 @@ void SystemClock_Config(void)
|
|||||||
uint32_t flash_latency;
|
uint32_t flash_latency;
|
||||||
RCC_ClkInitTypeDef RCC_ClkInitStruct;
|
RCC_ClkInitTypeDef RCC_ClkInitStruct;
|
||||||
RCC_OscInitTypeDef RCC_OscInitStruct;
|
RCC_OscInitTypeDef RCC_OscInitStruct;
|
||||||
|
#if defined(MCU_SERIES_H7)
|
||||||
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct;
|
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct;
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined (STM32H743xx)// 400MHz/48MHz
|
#if defined (STM32H743xx)// 400MHz/48MHz
|
||||||
/* Supply configuration update enable */
|
/* Supply configuration update enable */
|
||||||
@ -608,7 +610,9 @@ void SystemClock_Config(void)
|
|||||||
/* Enable HSE Oscillator and activate PLL with HSE as source */
|
/* Enable HSE Oscillator and activate PLL with HSE as source */
|
||||||
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
|
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
|
||||||
RCC_OscInitStruct.HSIState = RCC_HSI_OFF;
|
RCC_OscInitStruct.HSIState = RCC_HSI_OFF;
|
||||||
|
#if defined(MCU_SERIES_H7)
|
||||||
RCC_OscInitStruct.CSIState = RCC_CSI_OFF;
|
RCC_OscInitStruct.CSIState = RCC_CSI_OFF;
|
||||||
|
#endif
|
||||||
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
|
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
|
||||||
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
|
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
|
||||||
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
|
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit 9f0a0a6e6ad43d6febbc5e01670691b508327bf2
|
Subproject commit 8d787e9757634243f439a1299af2acfc2c60d948
|
||||||
Loading…
Reference in New Issue
Block a user