public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Problems with udelay() on AT91RM9200 !
@ 2004-11-22 14:13 Steven Scholz
  0 siblings, 0 replies; 3+ messages in thread
From: Steven Scholz @ 2004-11-22 14:13 UTC (permalink / raw)
  To: u-boot

Hi there,

I just noticed that the implementation of udelay() - i.e udelay_masked() - 
resets the timer. Why is that?

This prevents me from doing something like

	start = get_timer(0);	/* get current time */
	do {
		if ( get_timer(start) > timeout) {
			puts(" TIMEOUT!");
			break;
		}
		putc('.');
		udelay(100000);
	} while (1);

:-(

--

Steven

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

end of thread, other threads:[~2004-11-22 18:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20041122165543.AE556C1430@atlas.denx.de>
2004-11-22 18:05 ` [U-Boot-Users] Problems with udelay() on AT91RM9200 ! Steven Scholz
2004-11-22 18:57   ` Wolfgang Denk
2004-11-22 14:13 Steven Scholz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox