#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) |
Definition in file uffs_utils.c.
#define PFX "utils:" |
Definition at line 15 of file uffs_utils.c.
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().