vicp做为dm6446上的硬件加速器

源代码在线查看: package.xs

软件大小: 18570 K
上传用户: a520
关键词: vicp 6446 dm 硬件加速器
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*
				 * ======== package.xs ========
				 *
				 */
				
				/*
				 * ======== getLibs ========
				 */
				function getLibs(prog)
				{
				    var bool = 0;
				
				    print ("Inside EDMA3 RM Sample App getLibs");
				
				    /* Prepare variables to form the library path within this package */
				    var name = "edma3_rm_bios_sample.lib";
				    var name_i = "edma3_rm_bios_sample_i.lib";
				    var lib = "lib/";
				
				    /* Platforms supported */
				    var platform = [    'ti.platforms.evm6424',
				                        'ti.platforms.evm6452',
				                        'ti.platforms.evmDM6437',
				                        'ti.platforms.evmDM648',
				                        'ti.platforms.evmDM6446',
				                        'ti.platforms.dsk6455',
				                        'ti.platforms.evmDM6467',
				                        'ti.platforms.evm2530',
				                        'ti.platforms.evm3530',
				                        'ti.platforms.sdp2430',
				                        'ti.platforms.sdp3430',
				                   ];
				
				    /* Directories for each platform */
				    var dir = [ 'c6424/',
				                'c6452/',
				                'dm6437/',
				                'dm648/',
				                'dm6446/',
				                'c6455/',
				                'dm6467/',
				                'omap25xx/',
				                'omap35xx/',
				                'omap2430/',
				                'omap3430/',
				              ];
				
				    for (var i = 0; i < platform.length; i++)
				        {
				        if (java.lang.String(prog.platformName).equals(platform[i]))
				            {
				                /* Choose the selected platform */
				                lib = lib + dir[i];
				                bool = 1;
				                break;
				            }
				        }
				
				    if (bool == 0)
				        throw new Error('Unexpected value in "platform" parameter')
				
				
				    /* check the build profile to get the library to return */
				    switch (this.profile) {
				    case 'debug':
				        /* enable debug build for debug profile only */
				        lib = lib + "Debug/" + name;
				        break;
				
				    case 'idebug':
				        /* enable debug build for debug profile only */
				        lib = lib + "Debug/" + name_i;
				        break;
				
				    case 'irelease':
				        /* enable irelease build for irelease profile only */
				        lib = lib + "Release/" + name_i;
				        break;
				
				    default:
				        /* release profile for everything else */
				        lib = lib + "Release/" + name;
				    }
				
				    print("    will link with " + this.$name + ":" + lib);
				
				    /* return the library name */
				    return (lib);
				}
				
							

相关资源