2024-07-11 06:58:55 +00:00
|
|
|
|
/*
|
|
|
|
|
* task.h
|
|
|
|
|
*
|
|
|
|
|
* Created on: 2024<EFBFBD><EFBFBD>6<EFBFBD><EFBFBD>24<EFBFBD><EFBFBD>
|
|
|
|
|
* Author: psx
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef APP_INC_TASK_H_
|
|
|
|
|
#define APP_INC_TASK_H_
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "timeSliceOffset.h"
|
|
|
|
|
#include "uart_dev.h"
|
2024-08-29 09:24:57 +00:00
|
|
|
|
#include "math.h"
|
2024-08-29 02:50:22 +00:00
|
|
|
|
|
2024-10-18 08:55:39 +00:00
|
|
|
|
void Init();
|
2024-08-29 02:50:22 +00:00
|
|
|
|
|
2024-10-18 08:55:39 +00:00
|
|
|
|
/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָʾ<D6B8>ƺ<EFBFBD>ι<EFBFBD><CEB9> */
|
|
|
|
|
#define WdiRunled_reloadVal 1000 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
|
|
|
|
|
#define WdiRunled_offset 0 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD> */
|
|
|
|
|
#define wdi_RESET (60 * 60 * 24) /* һ<>츴λһ<CEBB><D2BB> */
|
|
|
|
|
extern STR_TimeSliceOffset m_WdiRunled;
|
|
|
|
|
extern void Task_WdiRunled(void);
|
2024-07-11 06:58:55 +00:00
|
|
|
|
|
2024-10-18 08:55:39 +00:00
|
|
|
|
/* ˢ<>¼Ĵ<C2BC><C4B4><EFBFBD><EFBFBD>е<EFBFBD><D0B5><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
#define refreshRegister_reloadVal 1000 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
|
|
|
|
|
#define refreshRegister_offset 0 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD> */
|
|
|
|
|
extern STR_TimeSliceOffset m_refreshRegister;
|
|
|
|
|
extern void Task_refreshRegister(void);
|
2024-08-29 02:50:22 +00:00
|
|
|
|
|
2024-10-18 08:55:39 +00:00
|
|
|
|
/* <20><>·<EFBFBD>迹<EFBFBD><E8BFB9><EFBFBD><EFBFBD> */
|
|
|
|
|
#define impedanceCalculation_reloadVal 200 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
|
|
|
|
|
#define impedanceCalculation_offset 0 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD> */
|
|
|
|
|
extern STR_TimeSliceOffset g_impedanceCalculation;
|
|
|
|
|
extern void Task_impedanceCalculation(void);
|
|
|
|
|
|
|
|
|
|
/* <20><>·<EFBFBD><C2B7><EFBFBD><EFBFBD> */
|
|
|
|
|
#define outputAgain_reloadVal 1000 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
|
|
|
|
|
#define outputAgain_offset 0 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD> */
|
|
|
|
|
extern STR_TimeSliceOffset g_outputAgain;
|
|
|
|
|
extern void Task_outputAgain(void);
|
|
|
|
|
|
|
|
|
|
/* <20><><EFBFBD>ر<EFBFBD><D8B1><EFBFBD> */
|
|
|
|
|
#define excessiveLoad_reloadVal 1000 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
|
|
|
|
|
#define excessiveLoad_offset 0 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD> */
|
|
|
|
|
extern STR_TimeSliceOffset g_excessiveLoad;
|
|
|
|
|
extern void Task_excessiveLoad(void);
|
|
|
|
|
|
|
|
|
|
/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
#define softStart_reloadVal 10 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
|
|
|
|
|
#define softStart_offset 0 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD> */
|
|
|
|
|
extern STR_TimeSliceOffset m_softStart;
|
|
|
|
|
extern void Task_softStart(void);
|
|
|
|
|
|
|
|
|
|
/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
#define startMpptControl_reloadVal 1000 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
|
|
|
|
|
#define startMpptControl_offset 0 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD> */
|
|
|
|
|
extern STR_TimeSliceOffset g_startMpptControl;
|
|
|
|
|
extern void Task_startMpptControl(void);
|
|
|
|
|
|
|
|
|
|
/* <20><><EFBFBD>ݼĴ<DDBC><C4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һЩ<D2BB>ж<EFBFBD> */
|
|
|
|
|
#define dataJudgment_reloadVal 1000 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
|
|
|
|
|
#define dataJudgment_offset 0 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD> */
|
|
|
|
|
extern STR_TimeSliceOffset g_dataJudgment;
|
|
|
|
|
extern void Task_dataJudgment(void);
|
|
|
|
|
|
|
|
|
|
/* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݽ<EFBFBD><DDBD><EFBFBD><EFBFBD>ʹ<EFBFBD><CDB4><EFBFBD> */
|
|
|
|
|
#define usartSL_reloadVal 100 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
|
|
|
|
|
#define usartSL_offset 0 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD> */
|
|
|
|
|
extern STR_TimeSliceOffset m_usart;
|
|
|
|
|
extern void Task_usartSL(void);
|
|
|
|
|
extern void Task_usartHY(void);
|
|
|
|
|
|
|
|
|
|
/* <20>㲥<EFBFBD><E3B2A5>Ӧ */
|
|
|
|
|
#define recvbroadcast_reloadVal 3000 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
|
|
|
|
|
#define recvbroadcast_offset 0 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD> */
|
|
|
|
|
extern uint8_t recvbroadcast_flag; /* <20>Ƿ<EFBFBD><C7B7><EFBFBD>Ҫ<EFBFBD>ٴη<D9B4><CEB7>ͱ<EFBFBD>־ */
|
|
|
|
|
extern device_handle g_recvBroadcastDevice; /* <20><><EFBFBD>ھ<EFBFBD><DABE><EFBFBD> */
|
|
|
|
|
extern STR_TimeSliceOffset g_recvbroadcast;
|
|
|
|
|
extern void Task_recvbroadcast(void);
|
|
|
|
|
|
|
|
|
|
/* <20>ٴ<EFBFBD>ע<EFBFBD><D7A2><EFBFBD><EFBFBD>ʱ */
|
|
|
|
|
#define sensorEnableBroadcast_reloadVal 1000 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
|
|
|
|
|
#define sensorEnableBroadcast_offset 0 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD> */
|
|
|
|
|
extern STR_TimeSliceOffset g_sensorEnableBroadcast;
|
|
|
|
|
extern void Task_sensorEnableBroadcast(void);
|
2024-07-11 06:58:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* APP_INC_TASK_H_ */
|