Solving the timer problem with the avr-gcc

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Solving the timer problem with the avr-gcc

Forum
Hello gcc experts,

i am learning C using the avr-gcc.
There are so many microcontroller specific problems solved within the avr-gcc.
But up to now i couldn't find any solution for the elegant use of timers?

About 2 years ago i discussed the problem here in this german forum:
https://www.mikrocontroller.net/topic/318025#3446454

The result was only this cumbersome macro code for only one microcontroller:
https://www.mikrocontroller.net/attachment/highlight/201074

Is there really no better solution outside?


My idea is to create a SQLite database to store for each AVR the corresponding timer interrupts, modes, register and bits.
A relational database could be a way to get the timer information (and more) mastered.
But i am not skilled enough if there is a way to get the information automated back into the source code?

Or would the only way to use this like the fuse calculator?
http://www.engbedded.com/fusecalc/
Then the needed basic register setting statements could be produced in this way.
It would be much more better than every programmer has to study and interprete the datasheets everytime himself.

Is there a place to collect such informations in a database?


_______________________________________________
AVR-GCC-list mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list
Loading...