On Wed, May 23, 2007 at 08:00:24PM +0300, Blue Swirl wrote:
> On 5/23/07, Paul Brook <[EMAIL PROTECTED]> wrote:
> >I get fed up of having to re-implement a simple countdown timer for every 
> >new
> >board, so I've added a simple periodic timer implementation to cvs
> >(ptimer.c). Currently only the Arm PrimeCell based boards use this, but 
> >I've
> >a few other uses in the pipeline.
> 
> Nice idea! On Sparc the timer can be configured to work in 64-bit
> mode, so could the ptimer_get/set_count be changed to use 64-bit
> values?

Perhaps the width could be made runtime configurable, e.g. 16, 24, 32,
64-bits as required for a given system, since there are other targets
which may need differring widths (mind I haven't looked all too closely
at the code to see if it already handles this : ).  Likewise, perhaps
up/down count can also be made runtime configurable, since, again, some
targets implement up counters.  The logic is all the same in that
case, with just a difference in sign...
> 

-- 
Regards,
George

    _____   __o   George G. Davis - Software Engineer           (o>
-------    -\<,   MontaVista Sofware - Platform to Innovate     //\
 ------ ( )/ ( )  www.mvista.com                                V_/_
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Reply via email to