Browse Source

[modbus]fix port file's head file.

armink 10 years ago
parent
commit
dec67c3a29

+ 1 - 1
components/net/freemodbus-v1.6.0/port/portserial.c

@@ -25,7 +25,7 @@
 #include "mb.h"
 #include "mbport.h"
 #include "rtdevice.h"
-#include "bsp.h"
+#include "board.h"
 
 /* ----------------------- Static variables ---------------------------------*/
 ALIGN(RT_ALIGN_SIZE)

+ 1 - 1
components/net/freemodbus-v1.6.0/port/portserial_m.c

@@ -25,7 +25,7 @@
 #include "mb.h"
 #include "mbport.h"
 #include "rtdevice.h"
-#include "bsp.h"
+#include "board.h"
 
 #if MB_MASTER_RTU_ENABLED > 0 || MB_MASTER_ASCII_ENABLED > 0
 /* ----------------------- Static variables ---------------------------------*/

+ 0 - 2
components/net/freemodbus-v1.6.0/port/user_mb_app.h

@@ -18,8 +18,6 @@
 #define S_REG_HOLDING_NREGS           100
 /* salve mode: holding register's all address */
 #define          S_HD_RESERVE                     0
-#define          S_HD_CPU_USAGE_MAJOR             1
-#define          S_HD_CPU_USAGE_MINOR             2
 /* salve mode: input register's all address */
 #define          S_IN_RESERVE                     0
 /* salve mode: coil's all address */