新聞中心

EEPW首頁 > 模擬技術(shù) > 設計應用 > 工程師應該掌握的STM32單片機關(guān)鍵基礎精華

工程師應該掌握的STM32單片機關(guān)鍵基礎精華

作者: 時間:2013-10-09 來源:網(wǎng)絡 收藏
: auto; orphans: 2; widows: 2; webkit-text-stroke-width: 0px">  RCC_Configuration();

  。。。。。。

  繼續(xù)跟蹤

  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



關(guān)鍵詞: STM32 單片機

評論


相關(guān)推薦

技術(shù)專區(qū)

關(guān)閉