Nios® II Software Developer Handbook

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

8.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.