Add modbus module (currently not work)
This commit is contained in:
21
Core/Inc/port.h
Normal file
21
Core/Inc/port.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#include <stdint.h>
|
||||
|
||||
typedef unsigned char BOOL;
|
||||
|
||||
typedef unsigned char UCHAR;
|
||||
typedef char CHAR;
|
||||
|
||||
typedef unsigned int USHORT;
|
||||
typedef int SHORT;
|
||||
|
||||
typedef unsigned long ULONG;
|
||||
typedef long LONG;
|
||||
|
||||
typedef union {
|
||||
struct {
|
||||
uint8_t low;
|
||||
uint8_t high;
|
||||
} bytes;
|
||||
uint16_t value;
|
||||
} CRC_t, MbDataField;
|
||||
|
||||
Reference in New Issue
Block a user