diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-21 14:56:21 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-21 14:56:21 +0000 |
commit | fcfd6c4d7ca3cc8d2751652a79a08d64eb8ec5a3 (patch) | |
tree | a06bbe9986c21dae6763e584c9ab79394cb3b99b /apps/include/modbus/mbfunc.h | |
parent | 1dc0e8b8c5b6e03fcfcdcbc89efd512f934eaca5 (diff) | |
download | nuttx-fcfd6c4d7ca3cc8d2751652a79a08d64eb8ec5a3.tar.gz nuttx-fcfd6c4d7ca3cc8d2751652a79a08d64eb8ec5a3.tar.bz2 nuttx-fcfd6c4d7ca3cc8d2751652a79a08d64eb8ec5a3.zip |
FreeModBus is now integrated with the Nuttx configuration system
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4961 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/include/modbus/mbfunc.h')
-rw-r--r-- | apps/include/modbus/mbfunc.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/include/modbus/mbfunc.h b/apps/include/modbus/mbfunc.h index aea14f759..d948ec72b 100644 --- a/apps/include/modbus/mbfunc.h +++ b/apps/include/modbus/mbfunc.h @@ -34,43 +34,43 @@ #ifdef __cplusplus PR_BEGIN_EXTERN_C #endif -#if MB_FUNC_OTHER_REP_SLAVEID_BUF > 0 +#ifdef CONFIG_MB_FUNC_OTHER_REP_SLAVEID_BUF eMBException eMBFuncReportSlaveID( UCHAR * pucFrame, USHORT * usLen ); #endif -#if MB_FUNC_READ_INPUT_ENABLED > 0 +#ifdef CONFIG_MB_FUNC_READ_INPUT_ENABLED eMBException eMBFuncReadInputRegister( UCHAR * pucFrame, USHORT * usLen ); #endif -#if MB_FUNC_READ_HOLDING_ENABLED > 0 +#ifdef CONFIG_MB_FUNC_READ_HOLDING_ENABLED eMBException eMBFuncReadHoldingRegister( UCHAR * pucFrame, USHORT * usLen ); #endif -#if MB_FUNC_WRITE_HOLDING_ENABLED > 0 +#ifdef CONFIG_MB_FUNC_WRITE_HOLDING_ENABLED eMBException eMBFuncWriteHoldingRegister( UCHAR * pucFrame, USHORT * usLen ); #endif -#if MB_FUNC_WRITE_MULTIPLE_HOLDING_ENABLED > 0 +#ifdef CONFIG_MB_FUNC_WRITE_MULTIPLE_HOLDING_ENABLED eMBException eMBFuncWriteMultipleHoldingRegister( UCHAR * pucFrame, USHORT * usLen ); #endif -#if MB_FUNC_READ_COILS_ENABLED > 0 +#ifdef CONFIG_MB_FUNC_READ_COILS_ENABLED eMBException eMBFuncReadCoils( UCHAR * pucFrame, USHORT * usLen ); #endif -#if MB_FUNC_WRITE_COIL_ENABLED > 0 +#ifdef CONFIG_MB_FUNC_WRITE_COIL_ENABLED eMBException eMBFuncWriteCoil( UCHAR * pucFrame, USHORT * usLen ); #endif -#if MB_FUNC_WRITE_MULTIPLE_COILS_ENABLED > 0 +#ifdef CONFIG_MB_FUNC_WRITE_MULTIPLE_COILS_ENABLED eMBException eMBFuncWriteMultipleCoils( UCHAR * pucFrame, USHORT * usLen ); #endif -#if MB_FUNC_READ_DISCRETE_INPUTS_ENABLED > 0 +#ifdef CONFIG_MB_FUNC_READ_DISCRETE_INPUTS_ENABLED eMBException eMBFuncReadDiscreteInputs( UCHAR * pucFrame, USHORT * usLen ); #endif -#if MB_FUNC_READWRITE_HOLDING_ENABLED > 0 +#ifdef CONFIG_MB_FUNC_READWRITE_HOLDING_ENABLED eMBException eMBFuncReadWriteMultipleHoldingRegister( UCHAR * pucFrame, USHORT * usLen ); #endif |