#ifndef _APP_FLOW_H #define _APP_FLOW_H #include "../clib/Type.h" #include "../ctask/task.h" #include "../msp/uart0.h" #include "../clib/clib.h" //#include "../debug/debug_drv.h"// //#include "../msp/msp_plcd.h" //#include "../msp/SHC6601_rtc.h" ///#include "app_rf.h" //#include "app_as.h" #include "../tpc/tpc_uart.h" //>>>>>>>>>>>>>>>>>>>>>0¿ª»útask ///#define D_task_FLOW_ask 0x56 ///#define D_task_FLOW_enter 0x57 ///#define D_task_FLOW_init 0x10 ///#define D_task_OSD_init_key 0x11 ///#define D_task_FLOW_STEP 0x30 ///#define D_task_FLOW_heratbeat 0x70 #define D_task_FLOW_wait_cam1 0x51 #define D_task_FLOW_wait_cam 0x52 #define D_task_FLOW_lowPower 0x53 #define D_task_FLOW_work 0x5b #define D_task_FLOW_cali 0x5c #define D_task_FLOW_init_sensor 0x54 #define D_task_FLOW_wait_sensor 0x55 #define D_task_FLOW_wakeup 0x56 #define D_task_FLOW_wakeup2 0x57 #define D_task_FLOW_overtime 0x58 #define D_task_FLOW_wakeup3 0x59 typedef struct { TS_task task; vU8 t_stamp; vU16 t_stamp2; vU16 wakeup_timer; vU8 long_hit; // vU8 first_run;// // unsigned char area;// // unsigned char status;// // unsigned char key;// }TS_task_FLOW_; extern TS_task_FLOW_ ts_task_FLOW; extern void L2_task_FLOW_handle(TS_task_FLOW_ *s); extern void L2_task_FLOW_init(void); extern void L2_task_FLOW_handle33(TS_task_FLOW_ *s); extern TS_P_rf433 TS_paer_value; #if 0 #define PrintFlow_L0_uart0_uchex(x) L0_uart0_uchex((x)) #define PrintFlow_L0_uart0_uc(x) L0_uart0_uc((x)) #define PrintFlow_D_send_us(x) D_send_ushex((x)) #define PrintFlow_str(x,len) L0_uart0_sendArray((x),len) #else #define PrintFlow_L0_uart0_uchex(x) #define PrintFlow_L0_uart0_uc(x) #define PrintFlow_D_send_us(x) #define PrintFlow_str(x,len) #endif //<<<<<<<<<<<<<<<<<<<0¿ª»útask #endif