Specifications

Commonly Called By
C/C++ programs
Device drivers
Thread-safe
No.
Available from ISR
No.
Include
<sys/alt_flash.h>
Description
The alt_get_flash_info() function gets the details of the erase region of a flash part. The flash part is
specified by the descriptor fd, a pointer to the start of the flash_region structures is returned in the info
parameter, and the number of flash regions are returned in number of regions.
Call this function only when operating in single-threaded mode.
The only valid values for the fd parameter are those returned from the alt_flash_open_dev function. If
any other value is passed, the behavior of this function is undefined.
Return
The return value is zero upon success. A negative return value indicates failure.
Related Information
alt_flash_close_dev() on page 14-22
alt_flash_open_dev() on page 14-28
alt_read_flash() on page 14-47
alt_write_flash() on page 14-52
alt_write_flash_block() on page 14-53
alt_ic_irq_disable()
Prototype
int alt_ic_irq_disable (alt_u32 ic_id, alt_u32 irq)
Commonly Called By
C/C++ programs
Device drivers
Thread-safe
Yes.
14-30
alt_ic_irq_disable()
NII5V2
2015.05.14
Altera Corporation
HAL API Reference
Send Feedback