mirror of
https://github.com/jie65535/stm32f10x-uC-OS-II.git
synced 2024-07-27 19:10:55 +08:00
11 lines
252 B
C
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 );
|
|
}
|