Added EC_WAIT_SDO_DICT define.

This commit is contained in:
Florian Pose 2006-10-20 12:54:32 +00:00
parent 0260f9a080
commit c782b9166c
2 changed files with 5 additions and 1 deletions

View File

@ -609,7 +609,7 @@ void ec_fsm_master_action_process_states(ec_fsm_t *fsm
if (!(slave->sii_mailbox_protocols & EC_MBOX_COE)
|| slave->sdo_dictionary_fetched
|| slave->current_state == EC_SLAVE_STATE_INIT
|| jiffies - slave->jiffies_preop < 5 * HZ
|| jiffies - slave->jiffies_preop < EC_WAIT_SDO_DICT * HZ
|| !slave->online
|| slave->error_flag) continue;

View File

@ -77,6 +77,10 @@
/** datagram timeout in microseconds */
#define EC_IO_TIMEOUT 500
/** Seconds to wait before fetching SDO dictionary
after slave entered PREOP state. */
#define EC_WAIT_SDO_DICT 3
/** minimum size of a buffer used with ec_state_string() */
#define EC_STATE_STRING_SIZE 30