mirror of
https://github.com/jie65535/stm32f10x-uC-OS-II.git
synced 2024-07-27 19:10:55 +08:00
upload template
This commit is contained in:
10
uCOS-II Template/uCOS-II/Config/app_cfg.c
Normal file
10
uCOS-II Template/uCOS-II/Config/app_cfg.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "stm32f10x.h"
|
||||
#include "os_cfg.h"
|
||||
|
||||
// ϵͳʱ<CDB3><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
void OSTick_Init(void)
|
||||
{
|
||||
RCC_ClocksTypeDef RCC_ClocksStructure;
|
||||
RCC_GetClocksFreq(&RCC_ClocksStructure);
|
||||
SysTick_Config(RCC_ClocksStructure.HCLK_Frequency / OS_TICKS_PER_SEC );
|
||||
}
|
||||
Reference in New Issue
Block a user