#ifndef __TASKS_H #define __TASKS_H #include "stm32f1xx_hal.h" #include "key_drivers.h" #include "iwdg.h" #include "gpio.h" #include "can_process.h" #include "var.h" #include "adc.h" #include "functional_safety_key.h" #include "led_app.h" #include "report_to_aux_mcu.h" #include "battery_display.h" #define TCNT_1HOUR 720000 extern uint8_t PowerOn_flag; extern uint16_t MC_error_cnt; extern uint16_t BMS_Charging_count; extern uint16_t TE_Sync_Clock_Freq, MCU_FreqResult; //全局变量 //全局函数 extern uint32_t TimeCntDiff_5ms(uint32_t v); extern void PBU_RunMode_Process(PBU_RunMode_t RunMode); extern void PBU_PowerOn_Judge(void); extern void CanRx_Process(void); extern void SendCfgToMC(void); extern void PBU_Error_Process(void); extern void FSK_Process(void); extern void AutoPowerOff_Process(void); #endif