mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
HAL_ChibiOS: support F7 with no crystal
This commit is contained in:
parent
099d6aa72e
commit
7b61a4d8c2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user