User`s manual

Table of Contents
Table of Contents ............................................................................................................................................ 1-1
1. Introduction ............................................................................................................................................... 1-1
1.1. Tool chain requirements .................................................................................................................... 1-2
1.2. Compiler options when you use this product .................................................................................... 1-2
1.3. Using the library within your project .................................................................................................. 1-3
1.3.1. Unzip the RPDL files .................................................................................................................. 1-3
1.3.2. Copy the files into your project area .......................................................................................... 1-3
1.3.3. Include the new directory ........................................................................................................... 1-6
1.3.4. Include the new source files ...................................................................................................... 1-7
1) Peripherals that are not required ................................................................................................. 1-7
2) Peripherals that are not supported by RPDL ............................................................................... 1-7
1.3.5. Avoid conflicts with standard project files. ................................................................................. 1-8
1) Removal ....................................................................................................................................... 1-8
2) Exclusion ...................................................................................................................................... 1-9
1.3.6. Add the library file path ............................................................................................................ 1-10
1.3.7. Set the build options. ................................................................................................................ 1-11
1.3.8. Add the "L" section ................................................................................................................... 1-13
1.3.9. Build the project ....................................................................................................................... 1-13
1.3.10. Using the library with debug information .................................................................................. 1-14
1.3.11. Header file inclusion ................................................................................................................. 1-15
1.3.12. Header file order ...................................................................................................................... 1-15
1.4. Document structure ......................................................................................................................... 1-16
1.5. Acronyms and abbreviations ........................................................................................................... 1-17
2. Driver ......................................................................................................................................................... 2-1
2.1. Overview ............................................................................................................................................ 2-1
2.2. Control Functions summary .............................................................................................................. 2-1
2.3. Clock Generation Circuit Driver ......................................................................................................... 2-3
2.4. Interrupt Control Driver ...................................................................................................................... 2-1
2.5. I/O Port Driver .................................................................................................................................... 2-2
2.6. Port Function Control Driver .............................................................................................................. 2-3
2.7. MCU Operation Driver ....................................................................................................................... 2-4
2.8. Low Power Consumption Driver ........................................................................................................ 2-5
2.9. Voltage Detection Circuit Driver ........................................................................................................ 2-6
2.10. Bus Controller Driver ......................................................................................................................... 2-7
2.11. DMA Controller Driver ........................................................................................................................ 2-8
2.12. External DMA Controller Driver ......................................................................................................... 2-9
2.13. Data Transfer Controller Driver ....................................................................................................... 2-10
2.14. Multi-Function Timer Pulse Unit Driver ............................................................................................. 2-11
2.15. Port Output Enable Driver ............................................................................................................... 2-12
2.16. Programmable Pulse Generator Driver ........................................................................................... 2-13
of 361