Files
hpw421/project/example/ble/ble_peripheral/app/src/timeslice.h
T
2026-07-03 18:08:25 +08:00

49 lines
607 B
C

#ifndef __TIMESLICE_H__
#define __TIMESLICE_H__
#define TASKS_MAX sizeof(TaskComps)/sizeof(TaskComps[0])
typedef struct _TASK_COMPONENTS
{
unsigned char Run; // 程序运行标记:0-不运行,1运行
unsigned int Timer; // 计时器
unsigned int ItvTime; // 任务运行间隔时间
void (*TaskHook)(void); // 要运行的任务函数
} TASK_COMPONENTS; // 任务定义
void TaskProcess(void);
void TaskRemarks(void);
void set_TaskComps_timer(unsigned char index,unsigned short value);
#endif