-
Notifications
You must be signed in to change notification settings - Fork 814
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: armink <[email protected]>
- Loading branch information
Showing
11 changed files
with
325 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* FreeModbus Libary: STM32 Port | ||
* FreeModbus Libary: RT-Thread Port | ||
* Copyright (C) 2013 Armink <[email protected]> | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* FreeModbus Libary: STM32 Port | ||
* FreeModbus Libary: RT-Thread Port | ||
* Copyright (C) 2013 Armink <[email protected]> | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* FreeModbus Libary: STM32 Port | ||
* FreeModbus Libary: RT-Thread Port | ||
* Copyright (C) 2013 Armink <[email protected]> | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* FreeModbus Libary: STM32 Port | ||
* FreeModbus Libary: RT-Thread Port | ||
* Copyright (C) 2013 Armink <[email protected]> | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* FreeModbus Libary: STM32 Port | ||
* FreeModbus Libary: RT-Thread Port | ||
* Copyright (C) 2013 Armink <[email protected]> | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
|
@@ -57,11 +57,6 @@ void prvvTIMERExpiredISR(void) | |
(void) pxMBPortCBTimerExpired(); | ||
} | ||
|
||
/** | ||
* This function is PLC uart receive timer callback function | ||
* | ||
* @param parameter null | ||
*/ | ||
static void timer_timeout_ind(void* parameter) | ||
{ | ||
prvvTIMERExpiredISR(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* FreeModbus Libary: STM32 Port | ||
* FreeModbus Libary: RT-Thread Port | ||
* Copyright (C) 2013 Armink <[email protected]> | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
|
@@ -57,7 +57,7 @@ void vMBMasterPortTimersT35Enable() | |
rt_tick_t timer_tick = (50 * usT35TimeOut50us) | ||
/ (1000 * 1000 / RT_TICK_PER_SECOND); | ||
|
||
/* Set current timer mode,don't change it.*/ | ||
/* Set current timer mode, don't change it.*/ | ||
vMBMasterSetCurTimerMode(MB_TMODE_T35); | ||
|
||
rt_timer_control(&timer, RT_TIMER_CTRL_SET_TIME, &timer_tick); | ||
|
@@ -69,7 +69,7 @@ void vMBMasterPortTimersConvertDelayEnable() | |
{ | ||
rt_tick_t timer_tick = MB_MASTER_DELAY_MS_CONVERT * RT_TICK_PER_SECOND / 1000; | ||
|
||
/* Set current timer mode,don't change it.*/ | ||
/* Set current timer mode, don't change it.*/ | ||
vMBMasterSetCurTimerMode(MB_TMODE_CONVERT_DELAY); | ||
|
||
rt_timer_control(&timer, RT_TIMER_CTRL_SET_TIME, &timer_tick); | ||
|
@@ -81,7 +81,7 @@ void vMBMasterPortTimersRespondTimeoutEnable() | |
{ | ||
rt_tick_t timer_tick = MB_MASTER_TIMEOUT_MS_RESPOND * RT_TICK_PER_SECOND / 1000; | ||
|
||
/* Set current timer mode,don't change it.*/ | ||
/* Set current timer mode, don't change it.*/ | ||
vMBMasterSetCurTimerMode(MB_TMODE_RESPOND_TIMEOUT); | ||
|
||
rt_timer_control(&timer, RT_TIMER_CTRL_SET_TIME, &timer_tick); | ||
|
@@ -99,11 +99,6 @@ void prvvTIMERExpiredISR(void) | |
(void) pxMBMasterPortCBTimerExpired(); | ||
} | ||
|
||
/** | ||
* This function is PLC uart receive timer callback function | ||
* | ||
* @param parameter null | ||
*/ | ||
static void timer_timeout_ind(void* parameter) | ||
{ | ||
prvvTIMERExpiredISR(); | ||
|
Oops, something went wrong.