1、【优化】FreeModbus主机错误处理回调函数代码。

Signed-off-by: armink <armink.ztl@gmail.com>
This commit is contained in:
armink 2014-01-24 10:57:19 +08:00
parent ee41d11300
commit 317f5180c7
1 changed files with 9 additions and 0 deletions

View File

@ -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