stm32f10x-uC-OS-II/uCOS-II Template/uCOS-II/Config/app_cfg.c
2019-01-18 17:14:55 +08:00

11 lines
252 B
C

#include "stm32f10x.h"
#include "os_cfg.h"
// 系统时钟启动
void OSTick_Init(void)
{
RCC_ClocksTypeDef RCC_ClocksStructure;
RCC_GetClocksFreq(&RCC_ClocksStructure);
SysTick_Config(RCC_ClocksStructure.HCLK_Frequency / OS_TICKS_PER_SEC );
}