avr-gcc-list
[Top][All Lists]
Advanced

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

[avr-gcc-list] Solving the timer problem with the avr-gcc


From: Forum
Subject: [avr-gcc-list] Solving the timer problem with the avr-gcc
Date: Fri, 20 Nov 2015 13:39:59 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0

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?




reply via email to

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