zoukankan      html  css  js  c++  java
  • crazyflie2.0 RCC时钟知识

    因为眼下手里仅仅有16MHZ的2520封装的贴片晶振,8MHZ这样的封装做不到这么小,所以就先用16MHZ,这样我们就须要改动程序相关的RCC时钟:

    1,stm32f4xx.h

    #define HSE_VALUE    ((uint32_t)16000000) /*!< Value of the External oscillator in Hz */

    2,system_stm32f4xx.c

    /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLL_M) * PLL_N */
    #define PLL_M      16
    /* USB OTG FS, SDIO and RNG Clock =  PLL_VCO / PLLQ */
    #define PLL_Q      7


    #if defined (STM32F40_41xxx)
    #define PLL_N      336
    /* SYSCLK = PLL_VCO / PLL_P */
    #define PLL_P      2
    #endif /* STM32F40_41xxx */


    #if defined (STM32F427_437xx) || defined (STM32F429_439xx)
    #define PLL_N      360
    /* SYSCLK = PLL_VCO / PLL_P */
    #define PLL_P      2
    #endif /* STM32F427_437x || STM32F429_439xx */


    #if defined (STM32F401xx)
    #define PLL_N      336
    /* SYSCLK = PLL_VCO / PLL_P */
    #define PLL_P      4
    #endif /* STM32F401xx */


  • 相关阅读:
    第十一周编程总结
    第十周编程总结
    第九周
    第八周
    第七周编程总结
    第六周编程总结
    学期总结
    第十四周课程总结&实验报告(简单记事本的实现)
    第十三周课程总结
    第十二周课程总结
  • 原文地址:https://www.cnblogs.com/blfbuaa/p/6795163.html
Copyright © 2011-2022 走看看