91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 9.09MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-04
  • 語言: 其他
  • 標簽: VxWork源碼??注釋??

資源簡介

VxWorks 完整源代碼及源代碼詳解,幫助了解VxWorks源碼。

資源截圖

代碼片段和文件信息

/*?flashTffs.c?-?dosFs?on?Flash?by?TFFS?drive?lib?*/

/*?Copyright?2002-2003?ZTE?of?ShangHaiInc.?*/

/*
modification?history
-------------------
?*/

/*?includes?*/

#include?“vxWorks.h“
#include?“stdio.h“
#include?“string.h“
#include?“dosFsLib.h“
#include?“tffs/tffsDrv.h“
#include?“sys/stat.h“
#include?“dirent.h“
#include?“flashTffs.h“
#include?“iosLib.h“
#include?“errnoLib.h“
#include?“taskLib.h“
#include?“usrLib.h“

/*?globals?*/

short?g_flashInitFlag?=?0;

extern?STATUS?dosFsMkfsOptionsSet?(?UINT?options?);
extern?STATUS?sysTffsFormat(unsigned?volNo);
/********************************************************************
?*
?*?initFlashTffs?--??initize?flash?area?by?tffs?drive?crate?dosFs
?*
?*?This?routine?implement?data?area‘s??initialization?function.
?*
?*?volNo:?the?serial?number?of?socket?of?Flash
?*
?*?NOTES:?before?call?initFlashTffs()?call?hashLibInit()?and?dosFsInit()?for?dosFs
?*????????and?call?tffsDrv()?for?TFFS?Flash.
?*????????if?include?INCLUDE_DOSFS?auto?call?hashLibInit()?and?dosFsInit()
?*????????and?if?include?INCLUDE_TFFS?auto?call?tffsDrv().
?*
?*?RETURNS:OKor?ERROR.
?*???????.
?*/

STATUS?initFlashTffs(unsigned?volNo)
{
????DOS_VOL_DESC?*??pDosVolDesc;
????BLK_DEV?*??pBlkDev;
????DEV_HDR?*??pDevHdr;
????STATUS?????dwRet;
????char????bFullPath[120];
????DIR?*pDir?=?NULL;

????if(volNo?!=?0)
????{
????????printf(“volNo?error?not?support?backup?disk\n“);
????????return(ERROR);
????}
????if(?0?==?g_flashInitFlag?)
????{
????????initFlashPhy();
???????
????????/*first?we?assume?tffs?has?been?formattedwe?directly?create?block?device*/

????????pBlkDev?=?(BLK_DEV?*)tffsDevCreate(volNo0);

????????if?(pBlkDev?==?NULL)
????????{
????????????/*create?block?device?failpossiblely?flash?hasn‘t?been?formatted*/
???????????printf(“TFFS?device?create?failure!ready?to?format?tffs!......\n“);

???????????dwRet?=?sysTffsFormat(volNo);
???????????if?(dwRet?==?ERROR)
???????????{
???????????????printf(“TFFS?device?format?failurereturn?to?system?control!......\n“);
???????????????return?(ERROR);
???????????}
???????????else
???????????{
???????????????printf(“TFFS?device?format?success!\n“);

???????????????pBlkDev?=?(BLK_DEV?*)tffsDevCreate(volNo0);
???????????????if?(pBlkDev?==?NULL)
???????????????{
???????????????????printf(“TFFS?device?still?create?failure?after?tffs?format?success!\n“);
???????????????????printf(“return?to?system?control!\n“);
???????????????????return?(ERROR);
???????????????}
???????????????else
???????????????{
???????????????????printf(“TFFS?device?create?success!\n“);
???????????????}
????????????}
????????}
????????else
????????{
????????????printf(“TFFS?device?create?success!\n“);
????????}

????????/*after?block?device?create?successfirst?assume?dosfs?has?been?formatted*/

????????pDosVolDesc?=?dosFsDevInit(MAIN_FLASH_SYMBOLpBlkDevNULL);
????????
????????if?(pDosVolDesc?==?NULL)
????????{
????????????printf(“DosFs?device?initial?failureready?to?create?a?DosFs!......\n“);

????????????pDevHdr?

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????7628??2001-07-20?14:18??VxWorks\.wind\uninst\data.001

?????文件??????55877??2001-07-20?14:20??VxWorks\.wind\uninst\data.002

?????文件???????3152??1999-01-28?14:15??VxWorks\.wind\uninst\INCLUDE.TCL

?????文件????????766??1998-09-02?17:39??VxWorks\.wind\uninst\REMOVE.ICO

?????文件??????19200??1998-09-02?17:39??VxWorks\.wind\uninst\UNINST.BMP

?????文件??????41806??1999-04-02?17:49??VxWorks\.wind\uninst\UNINST.TCL

?????文件???????4963??2003-05-09?12:59??VxWorks\flashTffs.c

?????文件???????4171??1999-01-07?07:32??VxWorks\host\Makefile

?????文件??????11231??1999-03-31?03:46??VxWorks\host\src\hutils\Makefile

?????文件???????2256??1999-03-16?22:03??VxWorks\host\src\Makefile

?????文件???????5860??1999-03-19?06:28??VxWorks\host\src\Makefile.w32

?????文件????????288??1997-08-06?01:50??VxWorks\host\src\tgtsvr\backend\acecpu32\acecpu32-d.def

?????文件???????6250??1997-08-05?13:11??VxWorks\host\src\tgtsvr\backend\acecpu32\acecpu32.cpp

?????文件????????284??1997-08-05?21:07??VxWorks\host\src\tgtsvr\backend\acecpu32\acecpu32.def

?????文件???????9522??1997-08-05?21:07??VxWorks\host\src\tgtsvr\backend\acecpu32\acecpu32.mak

?????文件??????60323??1997-08-05?13:11??VxWorks\host\src\tgtsvr\backend\acecpu32\acecpu32Backend.cpp

?????文件??????16162??1997-08-05?13:12??VxWorks\host\src\tgtsvr\backend\acecpu32\acecpu32Backend.h

?????文件??????28577??1997-08-06?01:52??VxWorks\host\src\tgtsvr\backend\acecpu32\acecpu32_4.mak

?????文件??????11645??1997-08-05?13:12??VxWorks\host\src\tgtsvr\backend\acecpu32\event.cpp

?????文件???????2906??1997-08-05?13:13??VxWorks\host\src\tgtsvr\backend\acecpu32\event.h

?????文件???????2496??1997-08-05?13:11??VxWorks\host\src\tgtsvr\backend\acecpu32\Makefile

?????文件???????1605??1997-08-05?13:13??VxWorks\host\src\tgtsvr\backend\acecpu32\mkace.sh

?????文件???????2022??1997-08-05?13:13??VxWorks\host\src\tgtsvr\backend\acecpu32\README

?????文件????????420??1999-01-13?05:03??VxWorks\host\src\tgtsvr\backend\backend.def

?????文件??????14957??1999-01-13?05:06??VxWorks\host\src\tgtsvr\backend\backend.dsp

?????文件??????16907??1999-01-13?05:04??VxWorks\host\src\tgtsvr\backend\backend.mak

?????文件??????48699??1998-07-10?21:32??VxWorks\host\src\tgtsvr\backend\docs\bkendDoc.c

?????文件???????1229??1998-09-23?16:39??VxWorks\host\src\tgtsvr\backend\docs\Makefile

?????文件??????46486??1999-01-16?00:58??VxWorks\host\src\tgtsvr\backend\docs\wdb.pcl

?????文件????????288??1997-08-06?01:29??VxWorks\host\src\tgtsvr\backend\estcpu32\estcpu32-d.def

............此處省略1279個文件信息

評論

共有 條評論