* [U-Boot-Users] Problems with udelay() on AT91RM9200 !
[not found] <20041122165543.AE556C1430@atlas.denx.de>
@ 2004-11-22 18:05 ` Steven Scholz
2004-11-22 18:57 ` Wolfgang Denk
0 siblings, 1 reply; 3+ messages in thread
From: Steven Scholz @ 2004-11-22 18:05 UTC (permalink / raw)
To: u-boot
Wolfgang Denk wrote:
> In message <41A1F410.6040107@imc-berlin.de> you wrote:
>
>>I just noticed that the implementation of udelay() - i.e udelay_masked() -
>>resets the timer. Why is that?
>
> Because of a bug?
Why didn't I think of this! ;-)
But seriously what's the point in letting the timer run with 40 or 80 MHz?
In my case udelay won't work for delays > 107ms anyway.... :-(
--
Steven
^ permalink raw reply [flat|nested] 3+ messages in thread* [U-Boot-Users] Problems with udelay() on AT91RM9200 !
2004-11-22 18:05 ` [U-Boot-Users] Problems with udelay() on AT91RM9200 ! Steven Scholz
@ 2004-11-22 18:57 ` Wolfgang Denk
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2004-11-22 18:57 UTC (permalink / raw)
To: u-boot
In message <41A22A87.3050609@imc-berlin.de> you wrote:
>
> Why didn't I think of this! ;-)
Dunno.
> But seriously what's the point in letting the timer run with 40 or 80 MHz?
> In my case udelay won't work for delays > 107ms anyway.... :-(
Then make it run slower if you like.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A memorandum is written not to inform the reader, but to protect the
writer. -- Dean Acheson
^ permalink raw reply [flat|nested] 3+ messages in thread
* [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