Nios® V Processor Software Developer Handbook

ID 743810
Date 2/14/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

7.7.4.2. Register a Flash Device

After creating an instance of the alt_flash_dev structure, you must make the device available to the HAL system by calling the following function:

int alt_flash_device_register( alt_flash_fd* fd)

This function takes a single input argument, which is the device structure to register. The return value is zero upon success. A negative return value indicates that the device cannot be registered.