void GetSystemClocks(void)
{
uint32_t SYSCLK,HCLK,PCLK1,PCLK2;
RCC_ClocksTypeDef RCC_Clock;
RCC_GetClocksFreq(&RCC_Clock);
SYSCLK = RCC_Clock.SYSCLK_Frequency;
HCLK = RCC_Clock.HCLK_Frequency;
PCLK1 = RCC_Clock.PCLK1_Frequency;
PCLK2 = RCC_Clock.PCLK2_Frequency;
}
一周热门 更多>