[U-Boot-Users] Resulution of udelay and co

Hallo,
I am a little bit confused about udelay(unsigned long usec), get_timer(ulong base) and wait_ticks (unsigned long ticks).
Witch resolution should have this functions?
Thanks
Jens

In message eiesap$2fn$2@sea.gmane.org you wrote:
By the way, what means the value of CFG_HZ
The number of ticks per second, like HZ in Linux.
For U-Boot, CFG_HZ is a constant of 1000.
Best regards,
Wolfgang Denk

In message eies5r$2fn$1@sea.gmane.org you wrote:
I am a little bit confused about udelay(unsigned long usec), get_timer(ulong base) and wait_ticks (unsigned long ticks).
Witch resolution should have this functions?
unsigned long usec = microseconds.
unsigned long ticks = ticks.
With the recommended setting of CFG_HZ=1000 a tick is a millisecond.
Best regards,
Wolfgang Denk

Wolfgang Denk schrieb:
In message eies5r$2fn$1@sea.gmane.org you wrote:
I am a little bit confused about udelay(unsigned long usec), get_timer(ulong base) and wait_ticks (unsigned long ticks).
Witch resolution should have this functions?
unsigned long usec = microseconds.
unsigned long ticks = ticks.
With the recommended setting of CFG_HZ=1000 a tick is a millisecond.
Best regards,
Wolfgang Denk
Thanks
I will correct the timer functions for my target cpu to be really CLK dependently.
Jens
participants (2)
-
Jens Scharsig
-
Wolfgang Denk