Using the SRU() Macro
12-32
ADSP-2126x SHARC Processor Hardware Reference
The names passed to the macro are the names given in
through
and in the DAI registers section in
. Note that each processor has its own specific
version of the macro that implements the bit field encodings appropriate
to that part. For example, in code for the ADSP-21262 processor, add the
following line in your source code:
#include <sru21262.h>;
The following lines illustrate how the macro is used:
/* Route SPORT 1 clock output to pin buffer 5 input */
SRU(SPORT1_CLK_O,DAI_PB05_I);
/* Route pin buffer 14 out to IDP3 frame sync input */
SRU(DAI_PB14_O,IDP3_FS_I);
/* Connect pin buffer enable 19 to logic low */
SRU(LOW,PBEN19_I);
Additional example code is available on the Analog Devices Web site.
There is a macro that has been created to connect peripherals used
in a DAI configuration. This code can be used in both Assembly
and C code. See the
INCLUDE
file
SRU.H
.
Содержание ADSP-21261 SHARC
Страница 30: ...Contents xxx ADSP 2126x SHARC Processor Hardware Reference ...
Страница 40: ...Register Diagram Conventions xl ADSP 2126x SHARC Processor Hardware Reference ...
Страница 58: ...Differences From Previous SHARCs 1 18 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 112: ...Secondary Processing Element PEy 2 54 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 178: ...Summary 3 66 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 204: ...DAG Instruction Summary 4 26 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 322: ...Setting Up DMA 7 32 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 436: ...SPORT Programming Examples 9 86 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 521: ...ADSP 2126x SHARC Processor Hardware Reference 11 31 Input Data Port rts IDP_ISR end ...
Страница 522: ...Input Data Port Programming Example 11 32 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 590: ...Timer Programming Examples 14 20 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 796: ...I O Processor Registers A 174 ADSP 2126x SHARC Processor Hardware Reference ...
Страница 800: ...B 4 ADSP 2126x SHARC Processor Core Manual ...
Страница 846: ...Index I 36 ADSP 2126x SHARC Processor Hardware Reference ...