HomeLab library is composed of several C language header files (with ”.h” extension) and one static library file (with ”.a” extension”). Upon library installation, all these files are copied to the AVR-GCC subdirectories where the compiler finds them automatically. The user does not have to copy these files to his or her program folder.
Step-by-step AVR development software installation instructions for Windows and Linux are written in the first chapter of practical examples. Although different practical examples use various parts of the library, all of them must include a static library (”.a” file) in the project. Only header files can be included selectively. Header files which are directly related to the AVR microcontroller are in the “homelab” folder, HomeLab module specific files are in the “homelab/module” folder. Both these folders are in the compiler's root folder, and to include the files from them, less-than and greater-than signs are needed to specify the path. An example of how to include AVR pins and HomeLab motors library header files:
Comments