define.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef __DEFINE_H__
  2. #define __DEFINE_H__
  3. #include <stdlib.h>
  4. #include <string.h>
  5. #include <stdbool.h>
  6. #include <stdint.h>
  7. #include "CONFIG.h"
  8. #include "HAL.h"
  9. #define LOG_OUTPUT_TIME 3000
  10. #define Timecount 256
  11. #define REBYTE_LEN 512
  12. #define SEND_LEN 128
  13. #define HIGH 1
  14. #define LOW 0
  15. #define SOFTWARE_VERSION 0x10
  16. #define HARDWARE_VERSION 0x14
  17. #define AES_ENABLE 0
  18. /* OTA upgrade logo */
  19. #define IMAGE_OTA_FLAG 0x03
  20. /* Store on the DataFlash address, the position of Bluetooth cannot be occupied */
  21. #define OTA_DATAFLASH_ADDR 0x08077000
  22. #define IMAGE_FLAG_1 0x1A
  23. #define IMAGE_FLAG_2 0x2A
  24. #define IMAGE_FLAG_3 0x3A
  25. #define CONFIG_DATAFLASH_ADDR 0x08077100
  26. #define CAN_OFFLINE_TIMEOUT_DEFAULT 5000
  27. #define USER_WS2812B_COUNT_DEFAULT 6
  28. #endif /* USER_DEFINE_H_ */