hmi.h 880 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2006-2020, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2020-05-26 Administrator the first version
  9. */
  10. #ifndef APPLICATIONS_INC_HMI_H_
  11. #define APPLICATIONS_INC_HMI_H_
  12. #include <rtthread.h>
  13. #define FLASH_FLAG 2
  14. #define UART_NAME "uart4" /*串口设备名称*/
  15. #define MAX_SIZE 512
  16. #define HMI_UART_RXBUFFER_SIZE 150
  17. extern rt_device_t serial; /*串口设备句柄*/
  18. extern uint8_t dbg_flag;
  19. extern uint8_t DBG_EN; //是否使能调试打印
  20. void Check_ParamConfig(void);
  21. void HMI_WRITE(char *fmt,...);
  22. void Fresh_Hmi(void);
  23. int Hmi_Fresh(void);
  24. void ResetParamDefault(void);
  25. void ResetParamDefault_DC(void);
  26. void app_partion_backup(void);
  27. void Debug_log_OFF(void);
  28. void Debug_log_ON(void);
  29. void bubblesort(int a[], int n);
  30. #endif /* APPLICATIONS_INC_HMI_H_ */