mppt/App/inc/task.h

59 lines
1.9 KiB
C
Raw Normal View History

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-05 02:35:10 +00:00
#define mpptControl_reloadVal 10 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
#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> */
#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;
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> */
#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-05 02:35:10 +00:00
#define CapCharg_reloadVal 500 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD>м<EFBFBD><D0BC><EFBFBD> */
2024-07-22 06:20:24 +00:00
#define CapCharg_offset 0 /* <20><><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>ƫ<EFBFBD><C6AB><EFBFBD><EFBFBD> */
extern STR_TimeSliceOffset m_CapCharg;
extern void Task_CapCharg(void);
2024-07-11 06:58:55 +00:00
void task_Init(void);
void hardware_Init(void);
#endif /* APP_INC_TASK_H_ */