V1.0
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#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; // 任务定义
|
||||
|
||||
//extern TASK_COMPONENTS TaskComps[1];
|
||||
|
||||
extern TASK_COMPONENTS TaskComps[];
|
||||
|
||||
|
||||
void TaskProcess(void);
|
||||
void TaskRemarks(void);
|
||||
void set_TaskComps_timer(unsigned char index,unsigned short value);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user