[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Sun, 16 Jul 2000, Nick Ivanter wrote:
> Does anybody know what is the use of flash_safe_acquire() and
> flash_safe_release() macros found in intrep.c ?
Those functions are for locking and unlocking of the flash chip,
i.e. semaphores. (At least in Axis's code.) The flash chip is
locked and unlocked automatically during a read, write or an
erase for instance. After you have called flash_safe_acquire()
you can do other stuff like accessing individual bytes on the
flash etc. flash_safe_acquire() and flash_safe_release() are
used in jffs_scan_flash() for example.