mirror of
https://github.com/armink/FreeModbus_Slave-Master-RTT-STM32.git
synced 2025-01-22 21:47:11 +08:00
1、【修改】FreeModbus主机及从机定时器名称不规范的问题。
Signed-off-by: armink <armink.ztl@gmail.com>
This commit is contained in:
parent
092cee82c4
commit
66d377bd34
@ -34,7 +34,7 @@ static void timer_timeout_ind(void* parameter);
|
||||
/* ----------------------- Start implementation -----------------------------*/
|
||||
BOOL xMBPortTimersInit(USHORT usTim1Timerout50us)
|
||||
{
|
||||
rt_timer_init(&timer, "plc_recv_timer",
|
||||
rt_timer_init(&timer, "slave timer",
|
||||
timer_timeout_ind, /* bind timeout callback function */
|
||||
RT_NULL,
|
||||
(50*usTim1Timerout50us)/(1000*1000/RT_TICK_PER_SECOND),
|
||||
|
@ -43,7 +43,7 @@ BOOL xMBMasterPortTimersInit(USHORT usTimeOut50us)
|
||||
/* backup T35 ticks */
|
||||
usT35TimeOut50us = usTimeOut50us;
|
||||
|
||||
rt_timer_init(&timer, "plc_recv_timer",
|
||||
rt_timer_init(&timer, "master timer",
|
||||
timer_timeout_ind, /* bind timeout callback function */
|
||||
RT_NULL,
|
||||
(50 * usT35TimeOut50us) / (1000 * 1000 / RT_TICK_PER_SECOND),
|
||||
|
Loading…
x
Reference in New Issue
Block a user