1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 13:25:30 +03:00

Fixed sdcard issues

Reset CPU clock to 168mhz (no overclocking)
This commit is contained in:
blckmn 2016-06-10 22:44:24 +10:00
parent c3e4eefcfc
commit 9b3e8ab01c
4 changed files with 34 additions and 23 deletions

View file

@ -384,7 +384,7 @@ uint32_t hse_value = HSE_VALUE;
#endif /* STM32F40_41xxx || STM32F427_437xx || STM32F429_439xx || STM32F401xx || STM32F469_479xx */
/* USB OTG FS, SDIO and RNG Clock = PLL_VCO / PLLQ */
#define PLL_Q 8
#define PLL_Q 7
#if defined(STM32F446xx)
/* PLL division factor for I2S, SAI, SYSTEM and SPDIF: Clock = PLL_VCO / PLLR */
@ -398,7 +398,7 @@ uint32_t hse_value = HSE_VALUE;
#endif /* STM32F427_437x || STM32F429_439xx || STM32F446xx || STM32F469_479xx */
#if defined (STM32F40_41xxx)
#define PLL_N 384
#define PLL_N 336
/* SYSCLK = PLL_VCO / PLL_P */
#define PLL_P 2
#endif /* STM32F40_41xxx */
@ -434,7 +434,7 @@ uint32_t hse_value = HSE_VALUE;
*/
#if defined(STM32F40_41xxx)
uint32_t SystemCoreClock = 192000000;
uint32_t SystemCoreClock = 168000000;
#endif /* STM32F40_41xxx */
#if defined(STM32F427_437xx) || defined(STM32F429_439xx) || defined(STM32F446xx) || defined(STM32F469_479xx)