Download Dynamic C Function Reference Manual

Transcript
sf_init
int sf_init( void );
DESCRIPTION
Initializes serial flash chip. This function must be called before the serial flash can be used. Currently supported devices are:
•
•
•
•
AT45DB041
AT45DB081
AT45DB642
AR45DB1282
Note: This function blocks and only works on boards with one serial flash device.
RETURN VALUE
0 for success
-1 if no flash chip detected
-2 if error communicating with flash chip
-3 if unknown flash chip type
LIBRARY
SFLASH.LIB
Dynamic C Functions
rabbit.com
479