view yaffsinterface.h @ 56:d9a8dfe4cd72

Correct the calculation of the block number to erase. The use of ">> 5" to calculate the block number from the chunk number was incorrect for the actual value of PAGES_PER_BLOCK (64). At the same time, make this less error prone.
author luc
date Mon, 01 Aug 2005 21:48:41 +0100
parents 2e830ef1597a
children 3eaa6f96e945
line wrap: on
line source

/*
 * YAFFS: Yet another FFS. A NAND-flash specific file system.
 * yaffsinterface.h: Interface to the guts of yaffs.
 *
 * Copyright (C) 2002 Aleph One Ltd.
 *   for Toby Churchill Ltd and Brightstar Engineering
 *
 * Created by Charles Manning <charles@aleph1.co.uk>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License version 2.1 as
 * published by the Free Software Foundation.
 *
 * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
 *
 */
 
#ifndef __YAFFSINTERFACE_H__
#define __YAFFSINTERFACE_H__


int yaffs_Initialise(unsigned nBlocks);

#endif