You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#ifndef _TASK_APPSTATUS_H
|
|
|
|
#define _TASK_APPSTATUS_H
|
|
|
|
|
|
|
|
#include "../ctask/task.h"
|
|
|
|
#include "../clib/clib.h"
|
|
|
|
#include "app_config.h"
|
|
|
|
|
|
|
|
|
|
|
|
#define Noperate_Time_MSeconds 180000
|
|
|
|
|
|
|
|
#define Noperate_Time_Seconds Noperate_Time_MSeconds/JIFFIES // 180000/JIFFIES = 180s
|
|
|
|
|
|
|
|
typedef struct _s_task_appstatus
|
|
|
|
{
|
|
|
|
TS_task task;
|
|
|
|
APP_STATUS status;
|
|
|
|
}S_TASK_APPSTATUS;
|
|
|
|
|
|
|
|
extern S_TASK_APPSTATUS _s_task_appstatus;
|
|
|
|
extern void L3_task_AppStatus_init(void);
|
|
|
|
extern void L3_task_appstatus_handler(S_TASK_APPSTATUS *s);
|
|
|
|
extern void PowerOff_judge();
|
|
|
|
|
|
|
|
#endif // #ifndef
|