Hi Matt,

On 02/06/2016 05:44 AM, Matthew Schinkel wrote:
I have added a "ticker" library. I wasn't sure what I should call it, please help! I don't think it should be called a timer library, as it would cause confusion. It mostly aliases timers to tickers. For example, TICKER0 can be an alias of TMR0, TMR1 or TMR3.
Normalizing timer libraries seems a good idea to me, but I think that making TICKER0 an alias of another timer than TMR0 does not improve the readability / maintainability of a program.

The provided sample should give a 1khz output when TICKER0_USE_TIMER = 0,1 or 3. I still need to add TMR2 support (some PICs don't have it).
Beware that there are PICs with much more timers: e.g. 1867k22 has TMR0,1,2,3,4,5,6,7,8,10,12, of which some are 8-bits, others 16-bits. Nice challenge to support all variants!
It would have been nice if the compiler had a macro preprocessor!

Regards, Rob.

--
*Rob H*amerling - http://www.robh.nl

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to