chore: rewrite to modbus rtu

This commit is contained in:
2024-11-09 00:36:06 +06:00
parent 0a0084f98f
commit 68f47c9d53
14 changed files with 506 additions and 167 deletions

11
rs485.h Normal file
View File

@@ -0,0 +1,11 @@
#ifndef RS485_H
#define RS485_H
#include <stdint.h>
void rs485_init(int uartBRR);
void rs485_send(uint8_t *buf, uint16_t len);
uint8_t rs485_available(void);
uint8_t rs485_read(void);
#endif