#ifndef _TASK_H_
#define _TASK_H_

#include "TYW_stdint.h"

extern uint8_t AutoFlag;
extern uint32_t devicename;
extern uint32_t send0x42time;
extern uint32_t bleOFFtoONtime;
extern uint8_t startONfalg;
extern uint32_t startIGONtime;
extern uint8_t ACCONOFF_delay_3s;
extern uint16_t ONE_KEY_ONOFF;
extern uint16_t CHECK_Ctrl_delay;
extern uint8_t ONEKEYFlag;
extern uint8_t backflag;
void Sys_Run_Mode_Pseudo_Real_Time_Tasks(void);
void Sys_Run_Mode_2ms_Tasks_Group(void);
void Sys_Run_Mode_5ms_Tasks_Group(void);
void Sys_Run_Mode_10ms_Tasks_Group(void);
void Sys_Run_Mode_20ms_Tasks_Group0(void);
void Sys_Run_Mode_50ms_Tasks_Group(void);
void Sys_Run_Mode_100ms_Tasks_Group(void);
void Sys_Exact_50us_Tasks(void);
void Sys_Exact_100ms_Tasks(void);
void Sys_Enter_Sleep_Mode(void);
uint16_t Sys_Get_ms_Rolling_Counter(void);

#endif