⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mkfs.c

📁 用于TM1300/PNX1300系列DSP(主要用于视频处理)的flash文件系统的程序源码。
💻 C
字号:
/*
 *  +-------------------------------------------------------------------+
 *  | Copyright (c) 1999,2000 TriMedia Technologies Inc.                |
 *  |                                                                   |
 *  | This software  is furnished under a license  and may only be used |
 *  | and copied in accordance with the terms  and conditions of such a |
 *  | license  and with  the inclusion of this  copyright notice.  This |
 *  | software or any other copies of this software may not be provided |
 *  | or otherwise  made available  to any other person.  The ownership |
 *  | and title of this software is not transferred.                    |
 *  |                                                                   |
 *  | The information  in this software  is subject  to change  without |
 *  | any  prior notice  and should not be construed as a commitment by |
 *  | TriMedia Technologies.                                            |
 *  |                                                                   |
 *  | This  code  and  information  is  provided  "as is"  without  any |
 *  | warranty of any kind,  either expressed or implied, including but |
 *  | not limited  to the implied warranties  of merchantability and/or |
 *  | fitness for any particular purpose.                               |
 *  +-------------------------------------------------------------------+
 *
 *  Module name              : mkfs.c    1.11
 *
 *  Title                    : Demo flash file system creation utility
 *
 *  Last update              : 11:36:08 - 00/06/19
 *
 *  Description              : 
 *
 */
#ifndef __TCS__tmsim__
#include <tm1/tsaComponent.h>

Int FlashFSDeactivate=1;
char text[] = "disabled/FlashFS";

#endif

main()
{

   printf("--------------- START OF FLASH MKFS --------------\n");

    if (  FLASH_init()
       && FlashUtil_init_filesystem() 
       && Flash_init() ) {
        FlashUtil_print();
        printf("------------- SUCCESSFULL TERMINATION ------------\n");
        exit(0);
    } else {
        printf(" FAILED FAILED FAILED FAILED FAILED FAILED FAILED\n");
        exit(1);
    }
}

#ifndef __TCS__tmsim__
static tmLibdevErr_t FlashFS_deactivate(pcomponent_t comp)
{
   tmLibdevErr_t err;
   err = tsaRegAddDirectory(text);
   if(err != TMLIBDEV_OK)
      return err;
   
   return TMLIBDEV_OK;
}


TSA_COMP_DEF_O_COMPONENT(FlashFSDeactivate, TSA_COMP_BUILD_ARG_LIST_1((Pointer)text),FlashFS_deactivate);

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -