新闻中心

EEPW首页 > 模拟技术 > 设计应用 > 工程师应该掌握的STM32单片机关键基础精华

工程师应该掌握的STM32单片机关键基础精华

作者: 时间:2013-10-09 来源:网络 收藏
: auto; orphans: 2; widows: 2; webkit-text-stroke-width: 0px">  RCC_Configuration();

  。。。。。。

  继续跟踪

  void RCC_Configuration(void)

  {

  SystemInit();

  。。。。。。

  这行代码在system_stm32f10x.c中找到了。

  void SystemInit (void)

  {

  /* Reset the RCC clock configuration to the default reset state(for debug purpose) */

  /* Set HSION bit */

  RCC-》CR |= (uint32_t)0x00000001;

  /* Reset SW, HPRE, PPRE1, PPRE2, ADCPRE and MCO bits */

  #ifndef F10X_CL

  RCC-》CFGR = (uint32_t)0xF8FF0000;

  #else

  RCC-》CFGR = (uint32_t)0xF0FF0000;

  #endif /* F10X_CL */

  /* Reset HSEON, CSSON and PLLON bits */

  RCC-》CR = (uint32_t)0xFEF6FFFF;

  /* Reset HSEBYP bit */

  RCC-》CR = (uint32_t)0xFFFBFFFF;

  /* Reset PLLSRC, PLLXTPRE, PLLMUL and USBPRE/OTGFSPRE bits */

  RCC-》CFGR = (uint32_t)0xFF80FFFF;

  #ifndef F10X_CL



关键词: STM32 单片机

评论


相关推荐

技术专区

关闭