global(6496).h 1011 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. /* typedef -----------------------------------------------------------*/
  14. typedef struct{
  15. uint16_t ctrEvent; // 中控板事件
  16. // bit0:中控板迁移事件
  17. }global_par;
  18. extern global s_global_par;
  19. // 事件枚举
  20. enum event{
  21. CtrlPanelMigration, // 中控板迁移事件
  22. };
  23. /* define ------------------------------------------------------------*/
  24. /* macro -------------------------------------------------------------*/
  25. /* variables ---------------------------------------------------------*/
  26. /* function prototypes -----------------------------------------------*/
  27. // @brief 中控板初始化
  28. extern void centralCtrSys_Init(param_boot *p_param_boot, rs485RecDate *p_rs485RecDate, global_par *p_global_par);
  29. #endif