HAL_ChibiOS: support F7 with no crystal

This commit is contained in:
pkocmoud 2021-01-14 21:54:11 -06:00 committed by Andrew Tridgell
parent 099d6aa72e
commit 7b61a4d8c2

View File

@ -85,7 +85,18 @@
#if !defined(HAL_CUSTOM_CLOCK_TREE)
#if defined(STM32F7xx_MCUCONF)
// F7 clock config
#if STM32_HSECLK == 8000000U
#if STM32_HSECLK == 0U
#undef STM32_HSE_ENABLED
#undef STM32_HSI_ENABLED
#undef STM32_PLLSRC
#define STM32_HSE_ENABLED FALSE
#define STM32_HSI_ENABLED TRUE
#define STM32_PLLSRC STM32_PLLSRC_HSI
#define STM32_PLLM_VALUE 8
#define STM32_PLLN_VALUE 216
#define STM32_PLLP_VALUE 2
#define STM32_PLLQ_VALUE 9
#elif STM32_HSECLK == 8000000U
#define STM32_PLLM_VALUE 8
#define STM32_PLLN_VALUE 432
#define STM32_PLLP_VALUE 2