[U-Boot-Users] Problems with udelay() on AT91RM9200 !

Steven Scholz steven.scholz at imc-berlin.de
Mon Nov 22 15:13:36 CET 2004


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





More information about the U-Boot mailing list