avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] RfR: <avr/timer.h>


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] RfR: <avr/timer.h>
Date: Sun, 15 Feb 2004 21:31:39 +0100
User-agent: Mutt/1.2.5i

As Joerg Wunsch wrote:

> > Oh! Would you! Please! :-)
> 
> Allright.  I did it.

I also added warnings to the file in the 1.0 branch.

> As Clemens Buchacher wrote:
> 
> > I think the TCCR and TCNT registers are mixed up as well. It should be
> > just the other way round.
> 
> Thanks for pointing it out.  Since we gotta maintain that file for a
> while in the 1.0 branch, I'll see to fix this there as well.

They are not even reversed, but the entire idea behind the start/stop
functions is bogus.  Of course, you cannot start/stop a timer by
writing to the TCNT0 register.  But then, you can't start it without
fully specifying the clock source anway (which is actually the purpose
of the timer0_source() function).  Since we just removed the file from
HEAD, I'd rather not mess with this at all, and only left a comment
there that the functions are bogus.
-- 
J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]