Visible to Intel only — GUID: iga1430779949370
Ixiasoft
1.1. Prerequisites for HAL Device Driver Development
1.2. Developing the HAL UART Device Driver
1.3. Debugging the bit_bang_uart Project
1.4. The BitBangUartTransmit() Function
1.5. The BitBangUartReceive() Function
1.6. Creating Device Hardware Access Macros
1.7. Staging the HAL Device Driver Development
1.8. Understanding the Hardware-Specific INSTANCE and INIT Macros
1.9. Integrating a New HAL Device Driver in the BSP
1.10. Understanding HAL Mutual Exclusion Resources
1.11. Overview of Debugging Tools for HAL Device Drivers
1.12. Debugging the HAL UART Device Driver
1.13. Conclusion
1.14. Document Revision History
Visible to Intel only — GUID: iga1430779949370
Ixiasoft
1.2.1. Preparing the bit_bang_uart Application and hal_my_uart BSP
First, you need to set up a development and debugging environment for the UART. This example uses the Nios II Cyclone V E FPGA Development Kit with an accompanying design example in an459-design-files.zip.
Follow these steps to build the bit_bang_uart project:
- Get the most up-to-date version of an459-design-files.zip which is available on the HAL Device Drivers Design Example page of the Altera website.
- Unzip an459-design-files.zip to a working directory, such as C:/my_design. This application note refers to this directory as <my_design>. Be sure to preserve the directory structure of the extracted software archive. Extraction creates a directory structure tree under <my_design> with the following four subdirectories:
- ip/my_uart
- software_examples/bsp/hal_my_uart
- software_examples/app/bit_bang_uart
- software_examples/app/hello_world_my_uart
Note: The working directory name you choose must not contain any spaces.
After extracting an459-design-files.zip, refer to <my_design>/readme.txt for a list of any required software patches or other updated information. If a patch is required, install it according to the instructions in readme.txt.
Related Information