Specifications
Include
<unistd.h>
Description
The usleep() function blocks until at least us microseconds have elapsed.
Return
The usleep() function returns zero on success, or –1 otherwise. If an error occurs, errno is set to
indicate the cause. The current implementation always succeeds.
Related Information
• alt_alarm_start() on page 14-10
• alt_alarm_stop() on page 14-11
• alt_nticks() on page 14-46
• alt_sysclk_init() on page 14-65
• alt_tick() on page 14-48
• alt_ticks_per_second() on page 14-49
• gettimeofday() on page 14-72
• settimeofday() on page 14-61
• times() on page 14-67
alt_lock_flash()
Prototype
int alt_lock_flash(alt_flash_dev * flash_info,
alt_u32 sectors_to_lock)
Commonly Called By
C/C++ programs
Device drivers
Thread-safe
No.
Available from ISR
No.
Include
<sys/alt_flash.h>
Description
Locking to range of the flash memory sectors, which protected from writing and erasing by passing the
uninteger 32 bits value to the sectors_to_lock argument, where this argument depends on the specific
NII5V2
2015.05.14
alt_lock_flash()
14-71
HAL API Reference
Altera Corporation
Send Feedback