<< Previous | Next >>

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 << Previous | Next >> rabbit.com