global(6082).h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef _GLOBAL_H_
  2. #define _GLOBAL_H_
  3. /* includes ----------------------------------------------------------*/
  4. #include "stm32f1xx_hal.h"
  5. #include "usart.h"
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8. #include <string.h>
  9. #include <stdbool.h>
  10. #include <ctype.h>
  11. #include "EC800.h"
  12. #include "flash.h"
  13. #include "task_communication.h"
  14. #include "comm_car_485.h"
  15. /* typedef -----------------------------------------------------------*/
  16. typedef struct{
  17. uint16_t ctrEvent; // 中控板事件
  18. // bit0:中控板迁移事件
  19. }global_par;
  20. extern global_par s_global_par;
  21. // 事件枚举
  22. enum event{
  23. CtrlPanelMigration, // 中控板迁移事件
  24. };
  25. /* define ------------------------------------------------------------*/
  26. /* macro -------------------------------------------------------------*/
  27. /* variables ---------------------------------------------------------*/
  28. /* function prototypes -----------------------------------------------*/
  29. // @brief 中控板初始化
  30. extern void centralCtrSys_Init(param_boot *p_param_boot, rs485RecDate *p_rs485RecDate, global_par *p_global_par);
  31. #endif