GLCD Library
A C Library for Embedded Applications
|
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.
Code in these files must only call functions which are:
devices/*.h
filesIf 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.
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.