On Wednesday 23 May 2007, 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?

In principle yes, though you may have to be careful to avoid overflows.

The current API supports specifying either frequency (better for fast, large 
count timers) and period (better for slow, small count timers). We want to 
avoid breaking either extreme when adding 64-bit counters.

Paul



Reply via email to