初始版本

This commit is contained in:
2026-04-23 13:49:53 +08:00
parent c1d6ebd38c
commit ac718a463a
257 changed files with 265681 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#ifndef _DEV_RS485_H_
#define _DEV_RS485_H_
#include "hdl_usart.h"
#define RS485_CTRL_PORT (GPIO_PORT_C)
#define RS485_CTRL_PIN (GPIO_PIN_07)
typedef void (*dev_rs485_cb_t)(uint8_t dat);
extern int dev_rs485_init(void);
extern void dev_rs485_send(uint8_t *buf, int len);
extern int dev_rs485_read(uint8_t *buf, int len);
extern int dev_rs485_rx_register(dev_rs485_cb_t fnCallback);
extern int dev_rs485_deinit(void);
#endif