Fix macOS compile errors
parent
bab9e0f020
commit
8060b07eee
|
|
@ -4,6 +4,7 @@
|
||||||
#include "communication/message/include/message.h"
|
#include "communication/message/include/message.h"
|
||||||
#include "communication/message/filter/include/messagefilter.h"
|
#include "communication/message/filter/include/messagefilter.h"
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <functional>
|
||||||
|
|
||||||
namespace icsneo {
|
namespace icsneo {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -277,16 +277,16 @@ typedef struct _UART_SETTINGS
|
||||||
uint16_t stop_bits;
|
uint16_t stop_bits;
|
||||||
uint8_t flow_control; /* 0- off, 1 - Simple CTS RTS */
|
uint8_t flow_control; /* 0- off, 1 - Simple CTS RTS */
|
||||||
uint8_t reserved_1;
|
uint8_t reserved_1;
|
||||||
union {
|
union abcd {
|
||||||
uint32_t bOptions;
|
uint32_t bOptions;
|
||||||
struct sOptions
|
struct _sOptions
|
||||||
{
|
{
|
||||||
unsigned invert_tx : 1;
|
unsigned invert_tx : 1;
|
||||||
unsigned invert_rx : 1;
|
unsigned invert_rx : 1;
|
||||||
unsigned half_duplex : 1;
|
unsigned half_duplex : 1;
|
||||||
unsigned reserved_bits : 13;
|
unsigned reserved_bits : 13;
|
||||||
unsigned reserved_bits2 : 16;
|
unsigned reserved_bits2 : 16;
|
||||||
};
|
} sOptions;
|
||||||
};
|
};
|
||||||
} UART_SETTINGS;
|
} UART_SETTINGS;
|
||||||
#define UART_SETTINGS_SIZE 16
|
#define UART_SETTINGS_SIZE 16
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue