Using the SRU() Macro
The names passed to the macro are the names given in
Table 12-7
and in the DAI registers section in
isters" on page
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 */
/* Route pin buffer 14 out to IDP3 frame sync input */
/* Connect pin buffer enable 19 to logic low */
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
12-32
A-113. Note that each processor has its own specific
SRU(SPORT1_CLK_O,DAI_PB05_I);
SRU(DAI_PB14_O,IDP3_FS_I);
SRU(LOW,PBEN19_I);
INCLUDE
ADSP-2126x SHARC Processor Hardware Reference
Table 12-2
"Signal Routing Unit Reg-
file
.
SRU.H
through
Need help?
Do you have a question about the ADSP-21261 SHARC and is the answer not in the manual?