Skip to contentSkip to conversation

Problems with udelay() on AT91RM9200 !

U-Boot-Users Steven Scholz 1 participant 1 message Nov 22, 2004

lore
Share & tools
lore
#0 lore raw

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