mirror of
https://github.com/goldenfishs/MRobot.git
synced 2025-07-05 23:04:21 +08:00
添加了任务初始化部分
This commit is contained in:
parent
69c200d4c9
commit
d467318505
@ -27,6 +27,10 @@ void {{task_function}}(void *argument) {
|
||||
|
||||
osDelay({{task_delay}}); /* 延时一段时间再开启任务 */
|
||||
|
||||
/* USER CODE INIT BEGIN*/
|
||||
|
||||
/* USER CODE INIT END*/
|
||||
|
||||
uint32_t tick = osKernelGetTickCount(); /* 控制任务运行频率的计时 */
|
||||
while (1) {
|
||||
tick += delay_tick; /* 计算下一个唤醒时刻 */
|
||||
|
Loading…
Reference in New Issue
Block a user