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.

25 lines
1.6 KiB

12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
  1. #pragma once
  2. /***********************************************************************************************************************
  3. * SDK_CONFIG *
  4. ***********************************************************************************************************************/
  5. #define SDK_DELAY_US_TIMER htim6 // 微秒延迟定时器,注意该延时定时器需要按照以下文档进行配置 http://192.168.1.3:3000/zwikipedia/iflytop_wikipedia/src/branch/master/doc/stm32cubemx_us_timer.md
  6. #define SDK_IRQ_PREEMPTPRIORITY_DEFAULT 5 // IO中断默认中断等级
  7. #define SDK_CFG__CFG_FLASH_ADDR 0x080C0000 // flash配置地址
  8. #define SDK_CFG__SN_FLASH_ADDR 0x080E0004 //
  9. #define SDK_MAX_TASK 10 // 最大任务数量
  10. /***********************************************************************************************************************
  11. * PROJECT_CONFIG *
  12. ***********************************************************************************************************************/
  13. /**
  14. * @brief
  15. */
  16. #define SOFTWARE_VERSION 1 // 软件版本
  17. #define HARDWARE_VERSION 1 // 硬件版本
  18. #define SN_HEADER "SN" // SN号前缀
  19. #define DEBUG_UART huart1 // 调试串口
  20. #define DEBUG_LIGHT_IO0 PE0 // 调试指示灯
  21. #define DEBUG_LIGHT_IO1 PE2 // 调试指示灯
  22. #define BOARD_TYPE_ID_FLASH_ADD 0x080E0000 // 板子类型