EasyManuals Logo
Home>Texas Instruments>Microcontrollers>C2000

Texas Instruments C2000 Workshop Guide And Lab Manual

Texas Instruments C2000
342 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 #53 background imageLoading...
Page #53 background image
F2806x C-Code Header Files
C2000 Microcontroller Workshop - Peripheral Registers Header Files 3 - 11
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 F2806x_GlobalVariableDefs.c included in the project all the needed variable definitions are
globally defined.
Global Variable Definitions File
F2806x_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:
F2806x_GlobalVariableDefs.c
#include "F2806x_Device.h"
#pragma DATA_SECTION(AdcRegs,"AdcRegsFile");
volatile struct ADC_REGS AdcRegs;
F2806x_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
F2806x_GlobalVariableDefs.c file to your project.

Table of Contents

Other manuals for Texas Instruments C2000

Questions and Answers:

Question and Answer IconNeed help?

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

Texas Instruments C2000 Specifications

General IconGeneral
BrandTexas Instruments
ModelC2000
CategoryMicrocontrollers
LanguageEnglish

Related product manuals