Verschiedene Timeouts verlängert.
This commit is contained in:
parent
f9c4eecee9
commit
58d3c00f3d
|
|
@ -888,7 +888,7 @@ void ecrt_master_sync_io(ec_master_t *master)
|
|||
ec_master_send_commands(master);
|
||||
|
||||
t_start = get_cycles(); // Sendezeit nehmen
|
||||
t_timeout = master->timeout * cpu_khz / 1000;
|
||||
t_timeout = (cycles_t) master->timeout * cpu_khz / 1000;
|
||||
|
||||
while (1)
|
||||
{
|
||||
|
|
@ -1013,7 +1013,7 @@ void ecrt_master_prepare_async_io(ec_master_t *master)
|
|||
ecrt_master_async_send(master);
|
||||
|
||||
t_start = get_cycles(); // Sendezeit nehmen
|
||||
t_timeout = master->timeout * cpu_khz / 1000;
|
||||
t_timeout = (cycles_t) master->timeout * cpu_khz / 1000;
|
||||
|
||||
// Aktiv warten!
|
||||
while (1) {
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ int ec_slave_sii_read(ec_slave_t *slave,
|
|||
// den Status auslesen, bis das Bit weg ist.
|
||||
|
||||
start = get_cycles();
|
||||
timeout = cpu_khz; // 1ms
|
||||
timeout = (cycles_t) 100 * cpu_khz; // 100ms
|
||||
|
||||
while (1)
|
||||
{
|
||||
|
|
@ -248,7 +248,7 @@ int ec_slave_sii_write(ec_slave_t *slave,
|
|||
// den Status auslesen, bis das Bit weg ist.
|
||||
|
||||
start = get_cycles();
|
||||
timeout = cpu_khz; // 1ms
|
||||
timeout = (cycles_t) 100 * cpu_khz; // 100ms
|
||||
|
||||
while (1)
|
||||
{
|
||||
|
|
@ -504,7 +504,7 @@ void ec_slave_state_ack(ec_slave_t *slave,
|
|||
}
|
||||
|
||||
start = get_cycles();
|
||||
timeout = cpu_khz; // 1ms
|
||||
timeout = (cycles_t) 10 * cpu_khz; // 10ms
|
||||
|
||||
while (1)
|
||||
{
|
||||
|
|
@ -568,7 +568,7 @@ int ec_slave_state_change(ec_slave_t *slave,
|
|||
}
|
||||
|
||||
start = get_cycles();
|
||||
timeout = cpu_khz; // 1ms
|
||||
timeout = (cycles_t) 10 * cpu_khz; // 10ms
|
||||
|
||||
while (1)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue