All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] RTDM and udelay
@ 2006-01-25 17:52 Rodrigo Rosenfeld Rosas
  2006-01-25 19:56 ` [Xenomai-help] " Jan Kiszka
  0 siblings, 1 reply; 7+ messages in thread
From: Rodrigo Rosenfeld Rosas @ 2006-01-25 17:52 UTC (permalink / raw)
  To: xenomai; +Cc: Jan Kiszka

Is there any alternative to udelay on RTDM?

Or should I do something like:

void rt_udelay(unsigned int usec) {
  uint64_t timeout = rtdm_clock_read () + usec;
  while (rtdm_clock_read () < timeout);
}

Or maybe my design is wrong.

I have a function, say WriteI2C(...). Should I create it as a task and call 
rtdm_task_sleep?

Thanks,

Rodrigo.

	

	
		
_______________________________________________________ 
Yahoo! doce lar. Faça do Yahoo! sua homepage. 
http://br.yahoo.com/homepageset.html 




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-01-27  9:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-25 17:52 [Xenomai-help] RTDM and udelay Rodrigo Rosenfeld Rosas
2006-01-25 19:56 ` [Xenomai-help] " Jan Kiszka
2006-01-26  0:42   ` Rodrigo Rosenfeld Rosas
2006-01-26  8:32     ` Jan Kiszka
2006-01-26 10:49       ` Rodrigo Rosenfeld Rosas
2006-01-26 15:17         ` Jan Kiszka
2006-01-27  9:41           ` Rodrigo Rosenfeld Rosas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.