#ifndef _GLOBAL_H_ #define _GLOBAL_H_ /* includes ----------------------------------------------------------*/ #include "stm32f1xx_hal.h" #include "usart.h" #include #include #include #include #include #include "EC800.h" #include "flash.h" #include "task_communication.h" #include "comm_car_485.h" /* typedef -----------------------------------------------------------*/ typedef struct{ uint16_t ctrEvent; // 中控板事件 // bit0:中控板迁移事件 }global_par; extern global_par s_global_par; // 事件枚举 enum event{ CtrlPanelMigration, // 中控板迁移事件 }; /* define ------------------------------------------------------------*/ /* macro -------------------------------------------------------------*/ /* variables ---------------------------------------------------------*/ /* function prototypes -----------------------------------------------*/ // @brief 中控板初始化 extern void centralCtrSys_Init(param_boot *p_param_boot, rs485RecDate *p_rs485RecDate, global_par *p_global_par); #endif