define.h 794 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef __DEFINE_H__
  2. #define __DEFINE_H__
  3. #include "ch32v20x.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_MAX_COUNT 16
  17. #define DEV_UART_ADDR 0xC1
  18. #define USER_USART1_ENABLE 1
  19. #define USER_USART2_ENABLE 1
  20. #define USER_USART3_ENABLE 0
  21. #define USER_USART4_ENABLE 1
  22. #endif /* USER_DEFINE_H_ */