Add modbus module (currently not work)

This commit is contained in:
2022-03-26 20:31:51 +03:00
parent 4746b6269c
commit cf049a6101
11 changed files with 621 additions and 27 deletions

21
Core/Inc/port.h Normal file
View 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;