From dec67c3a29a79d1357d75bc518a531795be9950b Mon Sep 17 00:00:00 2001 From: armink Date: Thu, 5 Feb 2015 20:54:32 +0800 Subject: [PATCH] [modbus]fix port file's head file. --- components/net/freemodbus-v1.6.0/port/portserial.c | 2 +- components/net/freemodbus-v1.6.0/port/portserial_m.c | 2 +- components/net/freemodbus-v1.6.0/port/user_mb_app.h | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/components/net/freemodbus-v1.6.0/port/portserial.c b/components/net/freemodbus-v1.6.0/port/portserial.c index 0ba8dfbaec..3a5f8eab62 100644 --- a/components/net/freemodbus-v1.6.0/port/portserial.c +++ b/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) diff --git a/components/net/freemodbus-v1.6.0/port/portserial_m.c b/components/net/freemodbus-v1.6.0/port/portserial_m.c index 4dc02d92bd..6c3d4c8299 100644 --- a/components/net/freemodbus-v1.6.0/port/portserial_m.c +++ b/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 ---------------------------------*/ diff --git a/components/net/freemodbus-v1.6.0/port/user_mb_app.h b/components/net/freemodbus-v1.6.0/port/user_mb_app.h index 846b9a3a48..864c3860bf 100644 --- a/components/net/freemodbus-v1.6.0/port/user_mb_app.h +++ b/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 */