CONFIG.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. #if ESP32
  13. // 胡一的配置
  14. //睡眠相关IO配置
  15. #define WAKE_GPIO_RCC RCC_APB2Periph_GPIOA
  16. #define WAKE_GPIO GPIOA
  17. #define DEEP_SLEEP_GPIO_Pin GPIO_Pin_6 // 深睡眠的引脚
  18. #define LIGHT_SLEEP_GPIO_Pin GPIO_Pin_7 // 浅睡眠的引脚
  19. //flash相关配置
  20. #define FLASH_SIZE 64
  21. #define FLASH_SAVE_ADDR 0X0800F800
  22. #endif
  23. // 何龙祥的配置
  24. //睡眠相关IO配置
  25. #define WAKE_GPIO_RCC RCC_APB2Periph_GPIOA
  26. #define WAKE_GPIO GPIOA
  27. #define WAKE_GPIO_Pin GPIO_Pin_6 // 睡眠的引脚
  28. //flash相关配置
  29. #define FLASH_SIZE 64
  30. #define FLASH_SAVE_ADDR 0X0800F800
  31. // 刘艳斌的配置
  32. //睡眠相关IO配置
  33. //#define WAKE_GPIO_RCC RCC_APB2Periph_GPIOE
  34. //#define WAKE_GPIO GPIOE
  35. //#define WAKE_GPIO_Pin GPIO_Pin_5 // 睡眠的引脚
  36. ////flash相关配置
  37. //#define FLASH_SIZE 512
  38. //#define SAVE_ADDR 0X0807E000
  39. #endif