工程师应该掌握的STM32单片机关键基础精华
: 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 STM32F10X_CL
RCC-》CFGR = (uint32_t)0xF8FF0000;
#else
RCC-》CFGR = (uint32_t)0xF0FF0000;
#endif /* STM32F10X_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 STM32F10X_CL

加入微信
获取电子行业最新资讯
搜索微信公众号:EEPW
或用微信扫描左侧二维码