[<<][staapl][>>][..]
Thu Feb 12 10:48:34 CET 2009

global variables

What is actually a gobal variable?  It's something of which there is
only one instance.  I.e. a machine constant, or an application
constant.

It's easier to use global variables for driver configurations.  Driver
code is highly parametric, but doesn't usually need multiple
specializations per uC program.  I.e. console baud rate.  Currently
"baud" global is used everywhere in console and serial init, but this
needs to change so one can have a console AND a special purpose serial
port with a different baudrate.

In general I'm going to use this strategy: use both generic macros
with arguments AND some default macro which uses a global variable.







[Reply][About]
[<<][staapl][>>][..]