| Line No. | Rev | Author | Line |
|---|---|---|---|
| 1 | 6 | kaklik | |
| 2 | --- AVRlib "conf" files --- |
||
| 3 | |||
| 4 | AVRlib contains many function/code libraries which depend upon particular aspects of the |
||
| 5 | user's hardware. The most basic of these is the processor clock rate. The clock rate defines |
||
| 6 | dozens of aspects of processor operation from code delays to UART baud rates. |
||
| 7 | |||
| 8 | To allow AVRlib to work easily with hardware that may vary from project to project, all |
||
| 9 | user-configurable parameters of AVRlib are contained in the template configuration files in |
||
| 10 | this directory. NOTE that these files are only templates and should be copied, as needed, |
||
| 11 | to an individual project's code directory and edited to suit that project's hardware. |
||
| 12 | |||
| 13 | |||
| 14 | global.h is the only configuration include file that is common to the entire AVRlib code base. |
||
| 15 | To use AVRlib libraries, you must copy global.h to your project's code directory and modify |
||
| 16 | the options inside global.h to match your hardware.) Each project should have its own global.h. |
||
| 17 | |||
| 18 | Other *conf.h files should be copied to your project's code directory as needed. For example, |
||
| 19 | if you intend to use the lcd.c library, you will need to copy lcdconf.h and modify it to match |
||
| 20 | the I/O and LCD configuration of your hardware. |
||
| 21 | |||
| 22 | ** If you fail to copy the configuration files needed for the AVRlib libraries you use, |
||
| 23 | the problem will usually exhibit itself as a compile-time error. |
||
| 24 |
Powered by WebSVN v2.8.3