Forum Discussion
Altera_Forum
Honored Contributor
19 years agocyg_thread_delay
Hi, I am new to eCos. Currently I am using CycloneII chip with 40Mhz clock. I would like to delay for 1 second. I read eCos documents. And I found that I'm supposed to use below method...
Altera_Forum
Honored Contributor
19 years agoHi romiodelta,
> But I would like to know how to calculate it.) from the ecos reference manual: <div class='quotetop'>QUOTE </div> --- Quote Start --- If the application requires delays measured in milliseconds or similar units rather than in clock ticks, some calculations are needed to convert between these units as described in Clocks. Usually these calculations can be done by the application developer, or at compile-time. Performing such calculations prior to every call to cyg_thread_delay adds unnecessary overhead to the system.[/b] --- Quote End --- See "Delay" at: http://ecos.sourceware.org/docs-latest/ref...ad-control.html (http://ecos.sourceware.org/docs-latest/ref/kernel-thread-control.html) Also Clock Resolutions and Ticks" and "cyg_clock_get_resolution" at: http://ecos.sourceware.org/docs-latest/ref...nel-clocks.html (http://ecos.sourceware.org/docs-latest/ref/kernel-clocks.html) Regards, --Scott