[En-Nut-Discussion] timers in nut/os?

Ole Reinhardt ole.reinhardt at kernelconcepts.de
Tue May 24 13:55:43 CEST 2005


Hi,

I'm a bit confused of what you plan to do. First take a look to: 

http://www.ethernut.de/api/group__xgTimer.html

A timer in NutOS is a function that will be called periodicaly or once.

HANDLE  NutTimerStart (u_long ms, void(*callback)(HANDLE, void *),
void *arg, u_char flags)

ms is the period the timer will be called after.
Callback is the callback function that will be called.
arg is the callback argument.
flags is a flag if the callback will be called once or periodicaly.

Take in mind, that the minimal resolution of the timer is 64ms if you
have not set NUT_CPU_FREQ. Otherwise you have a min. resolution of 1 ms.


You can use NutGetMillis without starting any timer...

Bye,

Ole


-- 
kernel concepts    Tel: +49-271-771091-14
Dreisbachstr. 24   Fax: +49-271-771091-19
D-57250 Netphen    E+ : +49-177-7420433
--





More information about the En-Nut-Discussion mailing list