define.h 650 B

123456789101112131415161718192021222324252627
  1. #ifndef __DEFINE_H__
  2. #define __DEFINE_H__
  3. #include <ch32v00X.h>
  4. #include <stdlib.h>
  5. #include <string.h>
  6. #include <stdbool.h>
  7. #include <stdint.h>
  8. #define LOG_OUTPUT_TIME 3000
  9. #define Timecount 256
  10. #define REBYTE_LEN 512
  11. #define SEND_LEN 128
  12. #define HIGH 1
  13. #define LOW 0
  14. #define SOFTWARE_VERSION 0x10
  15. #define HARDWARE_VERSION 0x14
  16. #define DEV_UART_ADDR 0xE1
  17. #define USER_USART1_ENABLE 1
  18. #define USER_USART2_ENABLE 1
  19. #endif /* USER_DEFINE_H_ */