Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

7.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 will never change, you can use a literal string, for example custom_uart_0.