#include "uffs/uffs_types.h"
#include "uffs/uffs_device.h"
Go to the source code of this file.
Defines | |
#define | ALLOC_BY_ABSOLUTE 1 |
#define | ALLOC_BY_SIZE 0 |
#define | ALLOC_USE_FREE 2 |
#define | PARTITION_BEGIN_ABSOLUTE 1 |
#define | PARTITION_FOLLOW_PRIVATE 0 |
Functions | |
URET | uffs_FormatDevice (uffs_Device *dev) |
int | uffs_GetUFFSVersion (struct uffs_DeviceSt *dev) |
#define ALLOC_BY_ABSOLUTE 1 |
Definition at line 18 of file uffs_utils.h.
#define ALLOC_BY_SIZE 0 |
Definition at line 17 of file uffs_utils.h.
#define ALLOC_USE_FREE 2 |
Definition at line 19 of file uffs_utils.h.
#define PARTITION_BEGIN_ABSOLUTE 1 |
Definition at line 14 of file uffs_utils.h.
#define PARTITION_FOLLOW_PRIVATE 0 |
Definition at line 13 of file uffs_utils.h.
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().
int uffs_GetUFFSVersion | ( | struct uffs_DeviceSt * | dev | ) |