[splint-discuss] Suggestion for SFR (not only for IAR)
Wenzel, Bodo
wenzel at bbr-vt.de
Thu Jul 19 01:58:58 EDT 2007
Hi.
It's not only the IAR compiler with this syntax for defining SFR
(special function registers), there are Keil and SDCC, too, just to
mention two I know of.
My suggestion is to define macros like
#define SFR_BYTE(name, address) ...
#define SFR_WORD(name, address) ...
in a compiler specific header file that expand to the needed syntax.
For Splint you might use another syntax which defines the SFRs as
simple static variables of the appropriate type. The macro S_SPLINT_S
can be used to distinguish between "Splint time" and "compilation
time".
HTH,
Bodo
Mit freundlichen Grüßen,
Bodo Wenzel
- Entwicklung Software -
--
BBR - Baudis Bergmann Rösch
Verkehrstechnik GmbH
Pillaustraße 1e
D - 38126 Braunschweig
T: +49.531.27300-766
F: +49.531.27300-999
@: wenzel at bbr-vt.de
W: http://www.bbr-vt.de
Registergericht:
AG Braunschweig HRB 3037
Geschäftsführer:
Dipl.-Ing. Arne Baudis
Dipl.-Ing. Thomas Bergmann
Dipl.-Ing. Frank-Michael Rösch
USt.-ID-Nr.:
DE 114 877 881
More information about the splint-discuss
mailing list