[U-Boot] Odd value for I2C_TIMEOUT in fsl_i2c.c
Scott Wood
scottwood at freescale.com
Fri Sep 4 21:28:01 CEST 2009
Wolfgang Denk wrote:
> Dear Scott Wood,
>
> In message <20090904183437.GA20066 at b07421-ec1.am.freescale.net> you wrote:
>>> milliseconds, i. e. a time. "(CONFIG_SYS_HZ / 4)" is a frequency,
>>> i. e. not a time, but the inverse of it.
>>>
>>> It is plain wront to write "250 per second" when you mean "250 milliseconds"
>> It is not a frequency, it is a number of ticks. This is a very common
>> idiom.
>
> CONFIG_SYS_HZ _is_ a frequenzy. It is the number of ticks _per_
> _second_. That is the _inverse_ of a time unit, not a time unit.
Yes, CONFIG_SYS_HZ is a frequency. And when you multiply a _frequency_,
which is _ticks_ per _second_, by a number _seconds_ (in this case, 1/4
sec), you get a number of _ticks_.
-Scott
More information about the U-Boot
mailing list