Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
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.