You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
2.0 KiB

2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. #pragma once
  2. #include "iflytop_canbus_protocol/iflytop_canbus_protocol.hpp"
  3. /***********************************************************************************************************************
  4. * SDK_CONFIG *
  5. ***********************************************************************************************************************/
  6. #define SDK_DELAY_US_TIMER htim6 // 微秒延迟定时器,注意该延时定时器需要按照以下文档进行配置 http://192.168.1.3:3000/zwikipedia/iflytop_wikipedia/src/branch/master/doc/stm32cubemx_us_timer.md
  7. #define SDK_IRQ_PREEMPTPRIORITY_DEFAULT 5 // IO中断默认中断等级
  8. #define SDK_CFG__CFG_FLASH_ADDR 0x080C0000 //
  9. #define SDK_CFG__SN_FLASH_ADDR 0x080E0000 //
  10. #define SDK_MAX_TASK 10
  11. /***********************************************************************************************************************
  12. * PROJECT_CONFIG *
  13. ***********************************************************************************************************************/
  14. /**
  15. * @brief
  16. *
  17. */
  18. #define SOFTWARE_VERSION 1 // 软件版本
  19. #define HARDWARE_VERSION 1 // 硬件版本
  20. #define PROJECT "h2o2_ext_sensor" // 工程名称
  21. #define SN_HEADER "SN" // SN号前缀
  22. #define PROJECT_ID kh2o2_ext_sensor // 项目ID
  23. #define BOARD_TYPE kBoardType_H2O2Sensor // 板子类型
  24. #define DEBUG_UART huart1 // 调试串口
  25. #define DEBUG_LIGHT_GPIO PE2 // 调试指示灯
  26. // #define H2O2_SENSOR_TYPE_HPP272
  27. #define H2O2_SENSOR_TYPE_HMP110
  28. #define DEVICE_ID_START (kFixBoardId_H2O2SensorStart) // 设备ID
  29. #define DEVICE_ID_OFF_PIN PE8 // 设备ID偏移引脚