/* * Copyright (c) 2006-2020, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2020-05-26 Administrator the first version */ #ifndef APPLICATIONS_INC_HMI_H_ #define APPLICATIONS_INC_HMI_H_ #include #define FLASH_FLAG 2 #define UART_NAME "uart4" /*串口设备名称*/ #define MAX_SIZE 512 #define HMI_UART_RXBUFFER_SIZE 150 extern rt_device_t serial; /*串口设备句柄*/ extern uint8_t dbg_flag; extern uint8_t DBG_EN; //是否使能调试打印 void Check_ParamConfig(void); void HMI_uart4_init(void); void HMI_WRITE(char *fmt,...); void Fresh_Hmi(void); int Hmi_Fresh(void); void ResetParamDefault(void); void app_partion_backup(void); void Debug_log_OFF(void); void Debug_log_ON(void); #endif /* APPLICATIONS_INC_HMI_H_ */