vicp做为dm6446上的硬件加速器
源代码在线查看: ti.sdo.edma3.rm.sample.sch
xdc.loadCapsule('xdc/om2.xs'); var $om = xdc.om; var __CFG__ = $om.$name == 'cfg'; var __ROV__ = $om.$name == 'rov'; var $$pkgspec = xdc.$$ses.findPkg('ti.sdo.edma3.rm.sample'); /* ======== IMPORTS ======== */ xdc.loadPackage('ti.sdo.edma3.rm'); xdc.loadPackage('xdc'); xdc.loadPackage('xdc.corevers'); /* ======== OBJECTS ======== */ // package ti.sdo.edma3.rm.sample var pkg = $om.$$bind('ti.sdo.edma3.rm.sample.Package', $$PObj()); $om.$$bind('ti.sdo.edma3.rm.sample', $$VObj('ti.sdo.edma3.rm.sample', pkg)); /* ======== CONSTS ======== */ /* ======== CREATES ======== */ /* ======== FUNCTIONS ======== */ /* ======== SIZES ======== */ /* ======== TYPES ======== */ /* ======== ROV ======== */ if (__ROV__) { } // __ROV__ /* ======== SINGLETONS ======== */ // package ti.sdo.edma3.rm.sample var po = $om['ti.sdo.edma3.rm.sample.Package'].$$init('ti.sdo.edma3.rm.sample.Package', $om['xdc.IPackage.Module']); var cap = $om.$$bind('xdc.IPackage$$capsule', xdc.loadCapsule('ti/sdo/edma3/rm/sample/package.xs')); if (cap['init']) po.$$fxn('init', $om['xdc.IPackage$$init'], cap['init']); if (cap['close']) po.$$fxn('close', $om['xdc.IPackage$$close'], cap['close']); if (cap['validate']) po.$$fxn('validate', $om['xdc.IPackage$$validate'], cap['validate']); if (cap['exit']) po.$$fxn('exit', $om['xdc.IPackage$$exit'], cap['exit']); if (cap['getLibs']) po.$$fxn('getLibs', $om['xdc.IPackage$$getLibs'], cap['getLibs']); if (cap['getSects']) po.$$fxn('getSects', $om['xdc.IPackage$$getSects'], cap['getSects']); po.$$bind('$capsule', cap); var pkg = $om['ti.sdo.edma3.rm.sample'].$$init(po, 'ti.sdo.edma3.rm.sample', $$DEFAULT, false); $om.$packages.$add(pkg); pkg.$$bind('$name', 'ti.sdo.edma3.rm.sample'); pkg.$$bind('$category', 'Package'); pkg.$$bind('$$qn', 'ti.sdo.edma3.rm.sample.'); pkg.$$bind('$spec', $$pkgspec); pkg.$$bind('$vers', [1, 03, 03]); pkg.$attr.$seal('length'); pkg.$$bind('$imports', [ ['ti.sdo.edma3.rm', []], ]); if (pkg.$vers.length >= 3) { pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..')); } pkg.build.libraries = [ ]; pkg.build.libDesc = [ ]; /* ======== INITIALIZATION ======== */ if (__CFG__) { } // __CFG__ pkg.init();