00001 #ifndef UFFS_UTILS_H
00002 #define UFFS_UTILS_H
00003
00004 #include "uffs/uffs_types.h"
00005 #include "uffs/uffs_device.h"
00006
00007 #ifdef __cplusplus
00008 extern "C"{
00009 #endif
00010
00011
00012
00013 #define PARTITION_FOLLOW_PRIVATE 0
00014 #define PARTITION_BEGIN_ABSOLUTE 1
00015
00016
00017 #define ALLOC_BY_SIZE 0
00018 #define ALLOC_BY_ABSOLUTE 1
00019 #define ALLOC_USE_FREE 2
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 int uffs_GetUFFSVersion(struct uffs_DeviceSt *dev);
00043
00044 URET uffs_FormatDevice(uffs_Device *dev);
00045
00046 #ifdef __cplusplus
00047 }
00048 #endif
00049
00050
00051 #endif
00052