Specifications

flash device being used,and this argument value can be found in the flash device datasheet. The flash
devices can be supported are shown as below:
EPCQ16, EPCQ32, EPCQ64, EPCQ128, EPCQ256, N25Q512, EPCQ512, EPCQL512, EPCQL1024
More Micron flash devices will be supported in future, and being updated into this document.
Arguments
*flash_info: Pointer to general flash device structure.
sectors_to_locL Block protection bits in EPCQ/QSPI ==>Bit4 | Bit3 | Bit2 | Bit1 | Bit0 TB | BP3 | BP2 |
BP1 | BP0
Return
*0 > Success
-EINVL > Invalid arguments
-ETIME > Time out and skipping the looping after 0.7 sec
-ENOLCK > Sectors lock failed
gettimeofday()
Prototype
int gettimeofday(struct timeval *ptimeval,
struct timezone *ptimezone)
Commonly Called By
C/C++ programs
Device drivers
Thread-safe
See description.
Available from ISR
Yes.
Include
<sys/time.h>
Description
The gettimeofday() function obtains a time structure that indicates the current time. This time is
calculated using the elapsed number of system clock ticks, and the current time value set by the most
recent call to settimeofday().
If this function is called concurrently with a call to settimeofday(), the value returned by
gettimeofday() is unreliable; however, concurrent calls to gettimeofday() are legal.
14-72
gettimeofday()
NII5V2
2015.05.14
Altera Corporation
HAL API Reference
Send Feedback