GLCD Library
A C Library for Embedded Applications
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
Adding a new chipset

Code for new controllers are stored in devices/.

Use a descriptive name for the corresponding .c and .h file.

The best way to see how to do this is to view the files already in there.

The code in here define routines which are specific for the chipset. This does not include the Required Functions used in the deive specific code.

See Also
Adding a new device

Code in these files must only call functions which are:

  • those required functions in the devices/*.h files
  • within the same file as itself
  • functions declared by glcd.h
See Also
Required functions

If you must do something that is compiler specfic, seperate the code using preprocessor commands that isolate the compiler in question. But try and avoid this if possible.

Updating glcd.h

After adding your device and controller, you'll also need to edit glcd.h, and make any additions as needed. Take a look at the existing code to see what needs to be done. Devices specific such as preprocessor macros, compiler specific include statements can be added here.