* [U-Boot-Users] Resulution of udelay and co
@ 2006-11-03 7:47 Jens Scharsig
2006-11-03 7:49 ` Jens Scharsig
2006-11-03 8:20 ` Wolfgang Denk
0 siblings, 2 replies; 5+ messages in thread
From: Jens Scharsig @ 2006-11-03 7:47 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] Resulution of udelay and co
2006-11-03 7:47 [U-Boot-Users] Resulution of udelay and co Jens Scharsig
@ 2006-11-03 7:49 ` Jens Scharsig
2006-11-03 8:21 ` Wolfgang Denk
2006-11-03 8:20 ` Wolfgang Denk
1 sibling, 1 reply; 5+ messages in thread
From: Jens Scharsig @ 2006-11-03 7:49 UTC (permalink / raw)
To: u-boot
By the way, what means the value of CFG_HZ
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] Resulution of udelay and co
2006-11-03 7:47 [U-Boot-Users] Resulution of udelay and co Jens Scharsig
2006-11-03 7:49 ` Jens Scharsig
@ 2006-11-03 8:20 ` Wolfgang Denk
2006-11-03 9:40 ` Jens Scharsig
1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2006-11-03 8:20 UTC (permalink / raw)
To: u-boot
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
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Bus error -- driver executed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] Resulution of udelay and co
2006-11-03 7:49 ` Jens Scharsig
@ 2006-11-03 8:21 ` Wolfgang Denk
0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2006-11-03 8:21 UTC (permalink / raw)
To: u-boot
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
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I often quote myself; it adds spice to my conversation. - G. B. Shaw
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] Resulution of udelay and co
2006-11-03 8:20 ` Wolfgang Denk
@ 2006-11-03 9:40 ` Jens Scharsig
0 siblings, 0 replies; 5+ messages in thread
From: Jens Scharsig @ 2006-11-03 9:40 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-11-03 9:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-03 7:47 [U-Boot-Users] Resulution of udelay and co Jens Scharsig
2006-11-03 7:49 ` Jens Scharsig
2006-11-03 8:21 ` Wolfgang Denk
2006-11-03 8:20 ` Wolfgang Denk
2006-11-03 9:40 ` Jens Scharsig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox