[U-Boot-Users] CFG_HZ and get_timer() issue

Wolfgang Denk wd at denx.de
Wed Jan 12 01:33:37 CET 2005


Dear Shawn,

sorry for the long delay.

In message <c3d0340b04101516017ab281a5 at mail.gmail.com> you wrote:
> 
> Shall we have a rule to guide where and when these functions should be used?

Ye. Please feel free to submit a patch to document this.

> To my understanding based on your fix for AT91RM9200 systems,
> 1. get_timer_maksed() should return the number of clock ticks, just as
> get_ticks().
> 2. get_timer_raw() returns the value of timestamp, which counts how
> many clocks elapse according to the timer's setting. It'a local
> function and should not be called in any other modules.

Indeed. And ideally we should get rid of get_timer_masked() and  make
get_timer() work as expected.

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
Include the success of others in your dreams for your own success.




More information about the U-Boot mailing list