Solved
APB1PeriphClock
Posted on March 15, 2017 at 17:38
Is there a function or macro for determining the frequency of APB1PeriphClock and APB2PeriphClock?
Thanks,
jh
#apb1periphclockIs there a function or macro for determining the frequency of APB1PeriphClock and APB2PeriphClock?
Thanks,
jh
#apb1periphclockRCC_ClocksTypeDef RCC_Clocks;
/* SysTick end of count event each 1ms */
RCC_GetClocksFreq(&RCC_Clocks);printf('SYS:%d H:%d, P1:%d, P2:%d\r\n',
RCC_Clocks.SYSCLK_Frequency, RCC_Clocks.HCLK_Frequency, // AHB RCC_Clocks.PCLK1_Frequency, // APB1 RCC_Clocks.PCLK2_Frequency); // APB2Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.