hpw422移植新的sdk
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
#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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user