Specifications

Thread-safe
No.
Available from ISR
No.
Include
<sys/alt_flash.h>
Description
The alt_read_flash() function reads data from flash. length bytes are read from the flash fd, starting
offset bytes from the beginning of the flash and are written to the location dest_addr.
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 on success and nonzero otherwise.
Related Information
alt_flash_close_dev() on page 14-22
alt_flash_open_dev() on page 14-28
alt_get_flash_info() on page 14-29
alt_write_flash() on page 14-52
alt_write_flash_block() on page 14-53
alt_tick()
Prototype
void alt_tick (void)
Commonly Called By
Device drivers
Thread-safe
No.
Available from ISR
Yes.
Include
<sys/alt_alarm.h>
14-48
alt_tick()
NII5V2
2015.05.14
Altera Corporation
HAL API Reference
Send Feedback