sync_mmccfg.tcf

来自「DSP/BIOS Driver Developer Kit 1.11 The 」· TCF 代码 · 共 48 行

TCF
48
字号
/* *  ======== sync_mmc_appcfg.tcf ======== *  This file is used for textual configuration of DSP/BIOS as an alternative *  or in addition to the traditional graphical configuration tool (GCONF). *  For more information on textual configuration and the TCONF utility, *  please refer to the DSP/BIOS TextConf User's Guide (SPRU007). *//* *  Load the Platform file for the appropriate board */utils.loadPlatform("Evm5509");/* *  Import EVM5509-specific parameters needed by the DDK examples. */utils.importFile("Evm5509_ddk.tci");var tskEcho = tibios.TSK.create("TSK0");tskEcho.comment = "MMC Test Task";tskEcho.fxn = prog.extern("initTask");/* * ======== udevMmc ======== */var udevMmc = tibios.UDEV.create("udevMmc0");  /* device app uses */udevMmc.fxnTable = prog.extern("C5509_MMC_FXNS"); /* IOM Fxn table */udevMmc.initFxn = prog.extern("C5509_MMC_init"); /* IOM init fxn */udevMmc.fxnTableType = "IOM_Fxns"; /* IOM driver model */udevMmc.params = prog.extern("C5509_MMC_devParams", "C"); /* app provides */udevMmc.deviceId = 1;   /* Use MMC 1 peripheral *//* Driver uses global data */udevMmc.deviceGlobalDataPtr = prog.extern("C5509_MMC_devObj", "C");tibios.GIO.ENABLEGIO = 1;/* *  Check if there have been errors and generate the configuration *  database file. * */if (config.hasReportedError == false) {    prog.gen();} else {    throw new Error( "Error in config script -- database not generated." );}

⌨️ 快捷键说明

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