123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #ifndef _GLOBAL_H_
- #define _GLOBAL_H_
- /* includes ----------------------------------------------------------*/
- #include "stm32f1xx_hal.h"
- #include "usart.h"
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <stdbool.h>
- #include <ctype.h>
- #include "EC800.h"
- #include "flash.h"
- /* typedef -----------------------------------------------------------*/
- typedef struct{
- uint16_t ctrEvent; // 中控板事件
- // bit0:中控板迁移事件
- }global_par;
- extern global 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
|