Skip to content

Commit

Permalink
1、【删除】FreeModbus主从机轮训延时,提升系统实时性。
Browse files Browse the repository at this point in the history
Signed-off-by: armink <[email protected]>
  • Loading branch information
armink committed Apr 6, 2015
1 parent b48c073 commit 59ea5bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions APP/inc/delay_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@

#endif

#define DELAY_SYS_RUN_LED DELAY_MS(500) //系统指示灯延时500ms
#define DELAY_SYS_SLEEP_LED DELAY_MS(1000) //系统指示灯延时1s
#define DELAY_MB_SLAVE_POLL DELAY_MS(1) //Modbus从机轮训时间
#define DELAY_MB_MASTER_POLL DELAY_MS(1) //Modbus主机轮训时间
#define DELAY_SYS_RUN_LED DELAY_MS(500)
#define DELAY_SYS_SLEEP_LED DELAY_MS(1000)

#endif

2 changes: 0 additions & 2 deletions APP/src/app_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ void thread_entry_ModbusSlavePoll(void* parameter)
while (1)
{
eMBPoll();
rt_thread_delay(DELAY_MB_SLAVE_POLL);
}
}

Expand All @@ -97,7 +96,6 @@ void thread_entry_ModbusMasterPoll(void* parameter)
while (1)
{
eMBMasterPoll();
rt_thread_delay(DELAY_MB_MASTER_POLL);
}
}

Expand Down

0 comments on commit 59ea5bb

Please sign in to comment.