| 12345678910111213141516171819202122232425262728293031 |
- #ifndef __DEFINE_H__
- #define __DEFINE_H__
- #include "ch32v20x.h"
- #include <stdlib.h>
- #include <string.h>
- #include <stdbool.h>
- #include <stdint.h>
- #define LOG_OUTPUT_TIME 3000
- #define Timecount 256
- #define REBYTE_LEN 512
- #define SEND_LEN 128
- #define HIGH 1
- #define LOW 0
- #define SOFTWARE_VERSION 0x10
- #define HARDWARE_VERSION 0x14
- #define DEV_MAX_COUNT 16
- #define DEV_UART_ADDR 0xC1
- #define USER_USART1_ENABLE 1
- #define USER_USART2_ENABLE 1
- #define USER_USART3_ENABLE 0
- #define USER_USART4_ENABLE 1
- #endif /* USER_DEFINE_H_ */
|