AI工具写的环形缓冲区

This commit is contained in:
2025-08-11 20:11:46 +08:00
parent c6c90800d4
commit 4a488429bf
13 changed files with 470 additions and 154 deletions

View File

@@ -3,13 +3,15 @@
#include "gd32e23x.h"
#define RX_BUFFER_SIZE 32
typedef enum {
UART_PRINTF_USART0 = 0,
UART_PRINTF_USART1 = 1,
UART_PRINTF_BOTH = 2
} uart_printf_port_t;
void uart0_init(void);
void uart_set_printf_port(uart_printf_port_t port);
void rs485_init(void);
// void uart_set_printf_port(uart_printf_port_t port);
#endif // UART_H