user_iot_version.h 876 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef __USER_IOT_VERSION_H__
  2. #define __USER_IOT_VERSION_H__
  3. #include "user_config.h"
  4. #define IOT_VERSION_MAJOR 1U
  5. #define IOT_VERSION_MINOR 0U
  6. #define IOT_VERSION_REVISION 5U
  7. #define VERSION_NUM (IOT_VERSION_MAJOR * 1000 + IOT_VERSION_MINOR * 100 + IOT_VERSION_REVISION)
  8. //#define VERSION_TYPE "b"
  9. #define VERSION_TYPE "v"
  10. #if LIGHT_DEVICE
  11. #define device_type 45772
  12. #elif PLUG_DEVICE
  13. #define device_type 23701
  14. #elif SENSOR_DEVICE
  15. #define device_type 12335
  16. #endif
  17. #define ONLINE_UPGRADE 0
  18. #define LOCAL_UPGRADE 0
  19. #define ALL_UPGRADE 1
  20. #define NONE_UPGRADE 0
  21. #if ONLINE_UPGRADE
  22. #define UPGRADE_FALG "O"
  23. #elif LOCAL_UPGRADE
  24. #define UPGRADE_FALG "l"
  25. #elif ALL_UPGRADE
  26. #define UPGRADE_FALG "a"
  27. #elif NONE_UPGRADE
  28. #define UPGRADE_FALG "n"
  29. #endif
  30. #define IOT_VERSION
  31. #endif