mirror of
https://github.com/armink/FreeModbus_Slave-Master-RTT-STM32.git
synced 2025-03-02 05:15:15 +08:00
1、【优化】FreeModbus主机错误处理回调函数代码。
Signed-off-by: armink <armink.ztl@gmail.com>
This commit is contained in:
parent
ee41d11300
commit
317f5180c7
@ -43,6 +43,14 @@ void vMBDelay(ULONG nCount)
|
|||||||
for(; nCount > 0;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,
|
void vMBMasterErrorCBRespondTimeout(UCHAR ucDestAddress, const UCHAR* pucPDUData,
|
||||||
USHORT ucPDULength) {
|
USHORT ucPDULength) {
|
||||||
|
|
||||||
@ -57,3 +65,4 @@ void vMBMasterErrorCBExecuteFunction(UCHAR ucDestAddress, const UCHAR* pucPDUDat
|
|||||||
USHORT ucPDULength) {
|
USHORT ucPDULength) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user