uffs_utils.c File Reference

utilities of uffs More...

#include "uffs/uffs_device.h"
#include "uffs/uffs_utils.h"
#include "uffs/uffs_os.h"
#include "uffs/uffs_public.h"
#include "uffs/uffs_version.h"
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Defines

#define PFX   "utils:"

Functions

URET uffs_FormatDevice (uffs_Device *dev)


Detailed Description

utilities of uffs

Author:
Ricky Zheng, created 12th May, 2005

Definition in file uffs_utils.c.


Define Documentation

#define PFX   "utils:"

Definition at line 15 of file uffs_utils.c.


Function Documentation

URET uffs_FormatDevice ( uffs_Device dev  ) 

Definition at line 65 of file uffs_utils.c.

References uffs_DeviceSt::buf, uffs_pageBufsSt::dirtyCount, uffs_DeviceOpsSt::EraseBlock, uffs_DeviceSt::flash, uffs_DeviceOpsSt::IsBlockBad, NULL, uffs_DeviceSt::ops, uffs_DeviceSt::par, PFX, uffs_partitionSt::start, U_FAIL, U_FALSE, U_SUCC, uffs_BufIsAllFree(), uffs_BufSetAllEmpty(), uffs_BuildTree(), UFFS_ERR_NORMAL, UFFS_ERR_SERIOUS, uffs_ExpireAllBlockInfo(), uffs_InitTreeBuf(), uffs_IsAllBlockInfoFree(), uffs_Perror(), and uffs_ReleaseTreeBuf().

Referenced by cmdFormat().


Generated on Sat Mar 17 15:45:45 2007 for uffs-doc by  doxygen 1.5.0