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"
|
|
|
|
|
|
|
|
|
|
#define runled_reloadVal 1000 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
|
|
|
|
|
#define runled_offset 0 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD> */
|
|
|
|
|
extern STR_TimeSliceOffset m_runled;
|
|
|
|
|
void Task_RunLED(void);
|
|
|
|
|
|
2024-08-17 03:14:19 +00:00
|
|
|
|
#define mpptControl_reloadVal 2000 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
|
2024-08-05 02:35:10 +00:00
|
|
|
|
#define mpptControl_offset 0 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD> */
|
2024-07-11 06:58:55 +00:00
|
|
|
|
extern STR_TimeSliceOffset m_mpptControl;
|
|
|
|
|
void Task_mpptControl(void);
|
|
|
|
|
|
|
|
|
|
#define usart_reloadVal 100 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
|
2024-07-24 08:57:38 +00:00
|
|
|
|
#define usart_offset 0 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD> */
|
2024-07-11 06:58:55 +00:00
|
|
|
|
extern STR_TimeSliceOffset m_usart;
|
2024-07-24 08:57:38 +00:00
|
|
|
|
extern uint8_t RegistrationRequestFlag; /* <20><><EFBFBD>յ<EFBFBD><D5B5>㲥֡<E3B2A5><D6A1>־λ */
|
2024-07-11 06:58:55 +00:00
|
|
|
|
void Task_usart(void);
|
|
|
|
|
|
|
|
|
|
#define wdi_reloadVal 1000 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
|
|
|
|
|
#define wdi_offset 30 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD> */
|
|
|
|
|
#define wdi_RESET (60 * 60 * 24) /* һ<>츴λһ<CEBB><D2BB> */
|
|
|
|
|
extern STR_TimeSliceOffset m_wdi;
|
|
|
|
|
void Task_wdi(void);
|
|
|
|
|
|
2024-08-05 02:35:10 +00:00
|
|
|
|
#define refreshRegister_reloadVal 1000 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
|
2024-07-24 08:57:38 +00:00
|
|
|
|
#define refreshRegister_offset 0 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD> */
|
|
|
|
|
extern STR_TimeSliceOffset m_refreshRegister;
|
|
|
|
|
void Task_refreshRegister(void);
|
|
|
|
|
|
|
|
|
|
#define recvbroadcast_reloadVal 3000 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
|
2024-07-11 06:58:55 +00:00
|
|
|
|
#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 uint8_t g_recvBroadcastRegisterNumber; /* <20>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
extern STR_TimeSliceOffset m_recvbroadcast;
|
|
|
|
|
void Task_recvbroadcast(void);
|
|
|
|
|
|
2024-08-17 03:14:19 +00:00
|
|
|
|
#define EnPowerSupply_reloadVal 100 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
|
|
|
|
|
#define EnPowerSupply_offset 0 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD> */
|
|
|
|
|
extern STR_TimeSliceOffset m_EnPowerSupply;
|
|
|
|
|
extern void Task_EnPowerSupply(void);
|
2024-07-22 06:20:24 +00:00
|
|
|
|
|
2024-07-11 06:58:55 +00:00
|
|
|
|
void task_Init(void);
|
|
|
|
|
void hardware_Init(void);
|
|
|
|
|
|
|
|
|
|
#endif /* APP_INC_TASK_H_ */
|