Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

8.10.2.3. Invoking Macros in Your Application Software

You can also take advantage of the lightweight device driver API by invoking ALT_DRIVER_READ(), ALT_DRIVER_WRITE() and ALT_DRIVER_IOCTL() in your application software. To use these macros, include the header file sys/alt_driver.h. Replace the instance argument with the device instance name macro from system.h; or if you are confident that the device instance name never changes, you can use a literal string, for example custom_uart_0.