📄 mfm20format.c
字号:
#ifdef FSS_FTR#define ACCESS_RIGHTS_INTERNAL_MFM#define MFM20FORMAT_C#include "mFm.h"#undef FILE_NUMBER#define FILE_NUMBER 20 #undef PROCEDURE_NUMBER #define PROCEDURE_NUMBER 1void mFm20_01FormatVol( void * pp_LayerContext, void * pp_Param ){ t_fs_llFormatVolume * pl_Param = (t_fs_llFormatVolume *) pp_Param; u16 vl_FileId; /* Get to lower layer to format the volume */ MC_MFM_LL_FORMAT ( pl_Param->p_Status ); /* If format of volume OK creates the volume root directory file, this first file which must obligatory have a null ID */ if ( *pl_Param->p_Status == FS_OK ) { /* Get to lower layer creates a new file */ MC_MFM_LL_CREATE_FILE ( &vl_FileId, 0, pl_Param->p_Status ); /* If no error it is needed to verify that the file ID is null if not an exception is to generate */ if ( *pl_Param->p_Status == FS_OK ) { if ( vl_FileId != 0 ) MFM_EXCPTHANDLER( MFM_BLOCKED, MC_MFM_EXCPT_ROOT_ID_ERR); } }}#endif /* FSS_FTR */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -