EasyManuals Logo

Texas Instruments TMS320F2837 D Series Workshop Guide And Lab Manual

Texas Instruments TMS320F2837 D Series
324 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #61 background imageLoading...
Page #61 background image
F2837xD C-Code Header Files
TMS320F2837xD Microcontroller Workshop - Peripherial Registers Header Files 3 - 13
three steps needed to use the header files. The first step is to include this file directly or indirectly
in each source files.
Global Variable Definitions File
With F2837xD_GlobalVariableDefs.c included in the project all the needed variable definitions are
globally defined.
Global Variable Definitions File
F2837xD_GlobalVariableDefs.c
Declares a global instantiation of the structure
for each peripheral
Each structure is placed in its own section using
a DATA_SECTION pragma to allow linking to the
correct memory (see next slide)
Add this file to your CCS project:
F2837xD_GlobalVariableDefs.c
#include "F2837xD_device.h"
#pragma DATA_SECTION(EPwm1Regs,“EPwm1RegsFile");
volatile struct EPWM_REGS EPwm1Regs;
F2837xD_GlobalVariableDefs.c
The global variable definition file declares a global instantiation of the structure for each
peripheral. Each structure is placed in its own section using a DATA_SECTION pragma to allow
linking to the correct memory. The second step for using the header files is to add
F2837xD_GlobalVariableDefs.c file to your project.

Table of Contents

Other manuals for Texas Instruments TMS320F2837 D Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TMS320F2837 D Series and is the answer not in the manual?

Texas Instruments TMS320F2837 D Series Specifications

General IconGeneral
BrandTexas Instruments
ModelTMS320F2837 D Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals