sync_mmccfg.tcf
上传用户:dahaojd
上传日期:2008-01-29
资源大小:14357k
文件大小:1k
- /*
- * ======== 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." );
- }