From 317f5180c7ffe60ef46fb3253cfc579f762e2f8b Mon Sep 17 00:00:00 2001 From: armink Date: Fri, 24 Jan 2014 10:57:19 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91F?= =?UTF-8?q?reeModbus=E4=B8=BB=E6=9C=BA=E9=94=99=E8=AF=AF=E5=A4=84=E7=90=86?= =?UTF-8?q?=E5=9B=9E=E8=B0=83=E5=87=BD=E6=95=B0=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: armink --- FreeModbus/port/port.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/FreeModbus/port/port.c b/FreeModbus/port/port.c index fb11c0f..952999a 100644 --- a/FreeModbus/port/port.c +++ b/FreeModbus/port/port.c @@ -43,6 +43,14 @@ void vMBDelay(ULONG nCount) for(; nCount > 0;nCount--); } +#if MB_MASTER_RTU_ENABLED > 0 || MB_MASTER_ASCII_ENABLED > 0 +/** + * + * Just use it for modbus master. + * @note There functions will block modbus master poll while execute OS waiting. + * So,for real-time of system.Do not execute too much waiting process. + * + */ void vMBMasterErrorCBRespondTimeout(UCHAR ucDestAddress, const UCHAR* pucPDUData, USHORT ucPDULength) { @@ -57,3 +65,4 @@ void vMBMasterErrorCBExecuteFunction(UCHAR ucDestAddress, const UCHAR* pucPDUDat USHORT ucPDULength) { } +#endif