CONFIG.h 725 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef __CONFIG_H
  2. #define __CONFIG_H
  3. #include <stdint.h>
  4. #define DEBUG 1 // Debug开关 1是开,0是关
  5. // 测试环境
  6. #define TEST_ENV 1
  7. // 生产环境
  8. //#define PROD_ENV 1
  9. //#define EC800M 1 //4G开关,不能数字开头
  10. //#define BC260Y 1 // NB
  11. #define ESP32 1 //WiFi
  12. // 何龙祥的配置
  13. //睡眠相关IO配置
  14. #define WAKE_GPIO_RCC RCC_APB2Periph_GPIOA
  15. #define WAKE_GPIO GPIOA
  16. #define WAKE_GPIO_Pin GPIO_Pin_6 // 睡眠的引脚
  17. //flash相关配置
  18. #define FLASH_SIZE 64
  19. #define FLASH_SAVE_ADDR 0X0800F800
  20. // 刘艳斌的配置
  21. //睡眠相关IO配置
  22. //#define WAKE_GPIO_RCC RCC_APB2Periph_GPIOE
  23. //#define WAKE_GPIO GPIOE
  24. //#define WAKE_GPIO_Pin GPIO_Pin_5 // 睡眠的引脚
  25. ////flash相关配置
  26. //#define FLASH_SIZE 512
  27. //#define SAVE_ADDR 0X0807E000
  28. #endif