Visible to Intel only — GUID: iga1430780383085
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: iga1430780383085
Ixiasoft
1.12.3.1. Using the Reduced Device Drivers API Option
The Reduced device drivers option generates a #define statement for ALT_USE_SMALL_DRIVERS. To turn on this option, set hal.enable_reduced_device_drivers to true. Setting this option has the following effects on correctly-written UART device drivers:
- Sets #define ALT_USE_SMALL_DRIVERS
- Activates polled mode only for the UART device
- Disables floating-point support in printf() and sprintf()
- Configures drivers to ignore flow control.
The figure below shows excerpts from the summary.html file generated by the SBT for a BSP with reduced device drivers enabled.
Figure 22. hal.enable_reduced_device_drivers in summary.html
Note: For more information about the Reduced device drivers option, refer to "Reducing Code Footprint" in the "Developing Programs Using the Hardware Abstraction Layer" chapter and to "Reducing Code Footprint" in the "Developing Device Drivers for the Hardware Abstraction Layer" chapter of the Nios II Software Developer's Handbook.