Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

RE: [lpc2000] Re: Global Variables

2005-09-26 by David Hawkins

> 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

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.