Fixed Linux MS/TP 76800 bitrate for Linux 2.6.20+ circa 2007 and added get/set API for config. (#1007)

This commit is contained in:
Ryan Mulder
2025-05-29 09:54:12 -04:00
committed by GitHub
parent 442f408c1a
commit cb7ef20485
7 changed files with 202 additions and 395 deletions
+6
View File
@@ -11,6 +11,8 @@
#include <stdint.h>
#include "bacnet/datalink/mstp.h"
#include <linux/serial.h> /* for serial_rs485 */
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
@@ -38,6 +40,10 @@ BACNET_STACK_EXPORT
uint32_t RS485_Get_Baud_Rate(void);
BACNET_STACK_EXPORT
bool RS485_Set_Baud_Rate(uint32_t baud);
BACNET_STACK_EXPORT
bool RS485_Get_Config(struct serial_rs485 *config);
BACNET_STACK_EXPORT
bool RS485_Set_Config(const struct serial_rs485 *config);
BACNET_STACK_EXPORT
void RS485_Cleanup(void);