[ECOS] Re: CYGACC_CALL_IF_DELAY_US(1000000) fails

Savin Zlobec savin@elatec.si
Tue Nov 25 14:28:00 GMT 2003

Uwe Kindler wrote:

>if I call  CYGACC_CALL_IF_DELAY_US(1000000) in order to delay one second,
>then this call returns a lot
>faster then 1 second. When I debug the code, then I can see, that
>HAL_DELAY_US provided by the HAL
>is only used if no kernel package is included. HAL_DELAY_US(1000000) works
>If the kernel package is included, the the following calculation takes
>// How many ticks total we should wait for.
>        usec_ticks = usecs*CYGNUM_KERNEL_COUNTERS_RTC_PERIOD;
This is already fixed in CVS.


There are better ways to wait for 1 second if you are using the kernel -
CYGACC_CALL_IF_DELAY_US is a busy wait.


Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

More information about the Ecos-discuss mailing list