> Think of this solution as writing a C++ class using C. > The static values needed between functions are like member > functions of a class, sorry, that should read 'member variables' > and the API presented to the user are > like C++ member functions. > > Another good example is accessing peripherals, its better > to write an API for accessing the peripheral and then > use that in your code, rather than always accessing > the registers of the peripherals directly. It makes code > more easily portable. > Dave
Message
RE: [lpc2000] Re: Global Variables
2005-09-26 by David Hawkins