Hi!

Over the last days I have worked on my new 5438 and I discovered that the 
header files (even the latest versions in CVS) are incomplete and/or buggy.
So I have added/changed the necessary defines for some parts as Timer A0/A1/B, 
CRC16 16bit GPIO ports and the clock system.

Main problem is that hardware modules in the 54xx family are far more modular 
than before. So different Ax timers differ only in base address and number of 
CCR registers. And TimerB is almost identical too. One 
cannot and should not simply add more fixed definitions.
I think the whole header file structure should be redesigned and rewritten. By 
defining the number of CCRs per Timer or even writing a Macro that is invoked 
with name of the timer and number of CCRs etc.

In the meantime my headers seem to work well, but I haven't checked for 
side-effects with other processors, so maybe I have missed something.

So if someone can look through the changes (mostly the #if defined parts) for 
obvious side-effects I might have msised, and then check them into CVS...


JMGross

-- 
Dipl.-Ing. Jens-Michael Gross
Entwicklung und Produktion

Convia GmbH
Erich-Steinfurth-Str.6
10243 Berlin
Amtsgericht Berlin Charlottenburg
HRB 84137
Geschaeftsfuehrung: Silvio Esser

Tel:       030-72014837
Durchwahl: +49-(0)30-75651669
Fax:       +49-(0)30 -72014839

Reply via email to