1、【修改】FreeModbus主机及从机定时器名称不规范的问题。

Signed-off-by: armink <armink.ztl@gmail.com>
This commit is contained in:
armink 2015-01-05 17:56:14 +08:00
parent 092cee82c4
commit 66d377bd34
2 changed files with 2 additions and 2 deletions

View File

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

View File

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