diff options
Diffstat (limited to 'apps/modbus/functions')
-rw-r--r-- | apps/modbus/functions/mbfunccoils.c | 6 | ||||
-rw-r--r-- | apps/modbus/functions/mbfuncdisc.c | 6 | ||||
-rw-r--r-- | apps/modbus/functions/mbfuncholding.c | 6 | ||||
-rw-r--r-- | apps/modbus/functions/mbfuncinput.c | 6 | ||||
-rw-r--r-- | apps/modbus/functions/mbfuncother.c | 6 | ||||
-rw-r--r-- | apps/modbus/functions/mbutils.c | 9 |
6 files changed, 20 insertions, 19 deletions
diff --git a/apps/modbus/functions/mbfunccoils.c b/apps/modbus/functions/mbfunccoils.c index 4bf9ce1ce..e518dbc79 100644 --- a/apps/modbus/functions/mbfunccoils.c +++ b/apps/modbus/functions/mbfunccoils.c @@ -37,9 +37,9 @@ #include "port.h" /* ----------------------- Modbus includes ----------------------------------*/ -#include "mb.h" -#include "mbframe.h" -#include "mbproto.h" +#include <apps/modbus/mb.h> +#include <apps/modbus/mbframe.h> +#include <apps/modbus/mbproto.h> /* ----------------------- Defines ------------------------------------------*/ #define MB_PDU_FUNC_READ_ADDR_OFF ( MB_PDU_DATA_OFF ) diff --git a/apps/modbus/functions/mbfuncdisc.c b/apps/modbus/functions/mbfuncdisc.c index 14d49e470..525fb037d 100644 --- a/apps/modbus/functions/mbfuncdisc.c +++ b/apps/modbus/functions/mbfuncdisc.c @@ -26,9 +26,9 @@ #include "port.h" /* ----------------------- Modbus includes ----------------------------------*/ -#include "mb.h" -#include "mbframe.h" -#include "mbproto.h" +#include <apps/modbus/mb.h> +#include <apps/modbus/mbframe.h> +#include <apps/modbus/mbproto.h> /* ----------------------- Defines ------------------------------------------*/ #define MB_PDU_FUNC_READ_ADDR_OFF ( MB_PDU_DATA_OFF ) diff --git a/apps/modbus/functions/mbfuncholding.c b/apps/modbus/functions/mbfuncholding.c index 507b7f382..019699836 100644 --- a/apps/modbus/functions/mbfuncholding.c +++ b/apps/modbus/functions/mbfuncholding.c @@ -37,9 +37,9 @@ #include "port.h" /* ----------------------- Modbus includes ----------------------------------*/ -#include "mb.h" -#include "mbframe.h" -#include "mbproto.h" +#include <apps/modbus/mb.h> +#include <apps/modbus/mbframe.h> +#include <apps/modbus/mbproto.h> /* ----------------------- Defines ------------------------------------------*/ #define MB_PDU_FUNC_READ_ADDR_OFF ( MB_PDU_DATA_OFF + 0) diff --git a/apps/modbus/functions/mbfuncinput.c b/apps/modbus/functions/mbfuncinput.c index 92c3ab79f..3f66c6594 100644 --- a/apps/modbus/functions/mbfuncinput.c +++ b/apps/modbus/functions/mbfuncinput.c @@ -37,9 +37,9 @@ #include "port.h" /* ----------------------- Modbus includes ----------------------------------*/ -#include "mb.h" -#include "mbframe.h" -#include "mbproto.h" +#include <apps/modbus/mb.h> +#include <apps/modbus/mbframe.h> +#include <apps/modbus/mbproto.h> /* ----------------------- Defines ------------------------------------------*/ #define MB_PDU_FUNC_READ_ADDR_OFF ( MB_PDU_DATA_OFF ) diff --git a/apps/modbus/functions/mbfuncother.c b/apps/modbus/functions/mbfuncother.c index 5d5636a16..f68097a4c 100644 --- a/apps/modbus/functions/mbfuncother.c +++ b/apps/modbus/functions/mbfuncother.c @@ -37,9 +37,9 @@ #include "port.h" /* ----------------------- Modbus includes ----------------------------------*/ -#include "mb.h" -#include "mbframe.h" -#include "mbproto.h" +#include <apps/modbus/mb.h> +#include <apps/modbus/mbframe.h> +#include <apps/modbus/mbproto.h> #ifdef CONFIG_MB_FUNC_OTHER_REP_SLAVEID_ENABLED diff --git a/apps/modbus/functions/mbutils.c b/apps/modbus/functions/mbutils.c index 8812419ec..992333565 100644 --- a/apps/modbus/functions/mbutils.c +++ b/apps/modbus/functions/mbutils.c @@ -32,13 +32,14 @@ #include <nuttx/config.h> #include <stdlib.h> #include <string.h> +#include <assert.h> /* ----------------------- Platform includes --------------------------------*/ #include "port.h" /* ----------------------- Modbus includes ----------------------------------*/ -#include "mb.h" -#include "mbproto.h" +#include <apps/modbus/mb.h> +#include <apps/modbus/mbproto.h> /* ----------------------- Defines ------------------------------------------*/ #define BITS_UCHAR 8U @@ -54,8 +55,8 @@ xMBUtilSetBits( UCHAR * ucByteBuf, USHORT usBitOffset, UCHAR ucNBits, USHORT usNPreBits; USHORT usValue = ucValue; - assert( ucNBits <= 8 ); - assert( ( size_t )BITS_UCHAR == sizeof( UCHAR ) * 8 ); + ASSERT( ucNBits <= 8 ); + ASSERT( ( size_t )BITS_UCHAR == sizeof( UCHAR ) * 8 ); /* Calculate byte offset for first byte containing the bit values starting * at usBitOffset. */ |