CELIS/APPLICATION/SecTimer/SecTimer.h
lidun b61c21c648
修改任务优先级
Signed-off-by: lidun <1084178170@qq.com>
2024-03-02 09:58:11 +08:00

60 lines
1.1 KiB
C

#ifndef _SecTimer_H__
#define _SecTimer_H__
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
struct SecTimer{
uint32_t Star_time;
uint32_t Endtime;
};
enum SecTimer_NUM
{
Init_SecTimerNUM,
Hand_SecTimerNUM,/****ÎÕÊÖ³¬Ê±******/
Ready_SecTimerNUM,
Start_SecTimerNUM,
Start1_SecTimerNUM,
Start2_SecTimerNUM,
Start3_SecTimerNUM,
Stop_SecTimerNUM,
Stop1_SecTimerNUM,
ACCharg_SecTimerNUM,
Enter_AC_SecTimerNUM,
Req_VoltCurr_SecTimerNUM,
Over_Curr_SecTimerNUM,
GUN_TEMP_SecTimerNUM,
CAN_WakeUp_Flag_SecTimerNUM,
Bus_Packet_Free_SecTimerNUM,
BusoffCnt_Free_SecTimerNUM,
SecTimerNUM
};
extern struct SecTimer SecTimer[SecTimerNUM];
bool SecStar(struct SecTimer* obj,uint32_t longTime);
bool SecStop(struct SecTimer* obj);
struct CAN_SendTimer
{
uint16_t Arrcount;
void (*can_send)(void);
struct CAN_SendTimer *next;
};
struct CAN_SendMaster
{
struct CAN_SendTimer* obj;
struct CAN_SendTimer* headH;
uint8_t Master_len;
};
extern struct CAN_SendMaster CanMasterOBJ ;
void TimSend(void);
void InitCAN_SendMaster(void);
#endif