forked from ccsens_hardware/ttss_sop
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.
71 lines
1.6 KiB
71 lines
1.6 KiB
#ifndef _APP_calibration_H
|
|
#define _APP_calibration_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 "../bsp/cw63xx.h"
|
|
#include "../bsp/bsp_msa300.h"
|
|
#include "../tpc/tpc_uart.h"
|
|
#include "../bsp/bsp_cam_isr.h"
|
|
|
|
//>>>>>>>>>>>>>>>>>>>>>0¿ª»útask
|
|
|
|
///#define D_task_CALIB_ask 0x56
|
|
///#define D_task_CALIB_enter 0x57
|
|
///#define D_task_CALIB_init 0x10
|
|
|
|
///#define D_task_OSD_init_key 0x11
|
|
///#define D_task_CALIB_STEP 0x30
|
|
///#define D_task_CALIB_heratbeat 0x70
|
|
|
|
|
|
#define D_task_CALIB_send 0x40
|
|
#define D_task_CALIB_send2 0x41
|
|
#define D_task_CALIB_send3 0x42
|
|
|
|
#define D_task_CALIB_PreSend 0x43
|
|
#define D_task_CALIB_PreSend2 0x44
|
|
|
|
|
|
|
|
#define D_task_CALIB_wait 0x51
|
|
#define D_task_CALIB_rr 0x52
|
|
|
|
#define D_task_CALIB_sleep 0x53
|
|
#define D_task_CALIB_init_sensor 0x54
|
|
#define D_task_CALIB_wait_sensor 0x55
|
|
#define D_task_CALIB_wakeup 0x56
|
|
#define D_task_CALIB_wakeup2 0x57
|
|
#define D_task_CALIB_overtime 0x58
|
|
#define D_task_CALIB_wakeup3 0x59
|
|
|
|
typedef struct
|
|
{
|
|
TS_task task;
|
|
// vU8 t_stamp;//
|
|
// vU8 first_run;//
|
|
unsigned char calib_time;//
|
|
unsigned char status;//
|
|
// unsigned char key;//
|
|
}TS_task_CALIB_;
|
|
extern TS_task_CALIB_ ts_task_CALIB;
|
|
|
|
extern void L2_task_CALIB_handle(TS_task_CALIB_ *s);
|
|
extern void L2_task_CALIB_init(void);
|
|
extern void L2_task_CALIB_handle22(TS_task_CALIB_ *s);
|
|
|
|
|
|
//<<<<<<<<<<<<<<<<<<<0¿ª»útask
|
|
|
|
#endif //_APP_calibration_H calib
|
|
|
|
|
|
|
|
|