Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
spru509f(введение).pdf
Скачиваний:
13
Добавлен:
18.05.2015
Размер:
1.72 Mб
Скачать

www.ti.com

Automation (for Project Management)

algorithms must not directly access any hardware peripherals and must implement standard resource management interfaces known as IALG (for memory management) and optionally, IDMA (for DMA resource management). In the examples that TI provides, the algorithms are simple, including finite impulse response (FIR) filters and volume controllers. You can substitute more significant eXpressDSP-compliant algorithms for the TI-provided ones, making a generic reference framework more application-specific.

Application-level code. The last step is to modify the application-level code. This code applies unique and value-added application-specific knowledge, allowing for real product differentiation. For instance, the application code required for a single-channel MP3 player is different than that required for a digital hearing aid.

4.6Automation (for Project Management)

4.6.1Using General Extension Language (GEL)

The General Extension Language (GEL) is an interpretive language, similar to C, that lets you create functions for Code Composer Studio. You create your GEL functions by using the GEL grammar, and then load them into the Code Composer Studio IDE. A subset of GEL functions may be used to automate project build options, or custom GEL menus may be created to automatically open and build a project.

Here'sa sample GEL Script to open the volume project:

/*

*Copyright 1998 by Texas Instruments Incorporated.

*All rights reserved. Property of Texas Instruments Incorporated.

*Restricted rights to use, duplicate or disclose this code are

*granted through contract.

*/

/*

*======== PrjOpen.gel ========

*Simple gel file to demonstrate project management capabilities of GEL

*/

menuitem "MyProjects" hotmenu OpenVolume()

{

// Open Volume tutorial example GEL_ProjectLoad("C:\\CCStudio_v3.1\\tutorial\\sim55xx\\volume1\\volume.pjt"); // Set currently active configuration to debug

GEL_ProjectSetActiveConfig("C:\\CCStudio_v3.1\\tutorial\\sim55xx\\volume1\\volume.pjt", "Debug");

// Build the project. GEL_ProjectBuild();

}

46

Code Creation

SPRU509F –May 2005

www.ti.com

Automation (for Project Management)

Figure 4-16. Custom GEL Files

4.6.2Scripting Utility

The scripting utility is a set of IDE commands that are integrated into a VB or perl scripting language. You may utilize the full capabilities of a scripting language, such as perl or VB, and combine it with automation tasks in Code Composer Studio. The scripting utility can configure a test scenario, open and build a corresponding project, and load it for execution. There are a number of scripting commands that may be used to build and manage projects. Scripting is synchronous.

The scripting utility is an add-on capability available through Update Advisor (see Section 7.2).

SPRU509F –May 2005

Code Creation

47

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]