This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
clock resolution
- To: <ecos-discuss at sourceware dot cygnus dot com>
- Subject: [ECOS] clock resolution
- From: Michał Oleńczuk <olenczuk at rts dot com dot pl>
- Date: Mon, 23 Apr 2001 14:40:32 +0100
Hi,
I am beginner in eCos programming and I have some problems:
I want to set real time clock resolution to 1000 ticks/sec (or higher). Is
it available to set it from software using cyg_clock_set_resolution() ?
Setting dividend and divisor in cyg_resolution_t structure gives no effect
(cyg_clock_get_resolution() gives the same before-setting resolution value
=100).
I changed it in eCos ConfigTool, and after calling
cyg_clock_get_resolution() I got my setted resolution resolution, but some
function like cyg_thread_delay() or alarm functions work the same as with
default resolution value.
How to get 1000 or more ticks for a second ????
Greetings
--
Michał Oleńczuk
mailto: olenczuk@rts.com.pl
tel. 0604091867