diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-21 16:18:16 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-21 16:18:16 +0000 |
commit | ebf70f8a79eb8ef23bc1d99938768ef06c466119 (patch) | |
tree | b6b1ed94e450700269e6113516f911b4fd7a3848 /apps/modbus/functions/mbutils.c | |
parent | 814d1451322bba23a1be8ffb07dc00773613c503 (diff) | |
download | nuttx-ebf70f8a79eb8ef23bc1d99938768ef06c466119.tar.gz nuttx-ebf70f8a79eb8ef23bc1d99938768ef06c466119.tar.bz2 nuttx-ebf70f8a79eb8ef23bc1d99938768ef06c466119.zip |
FreeModBus now builds
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4963 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/modbus/functions/mbutils.c')
-rw-r--r-- | apps/modbus/functions/mbutils.c | 9 |
1 files changed, 5 insertions, 4 deletions
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. */ |