ADSP-21368 SHARC Processor Hardware Reference 4-77
Digital Audio/Digital Peripheral Interfaces
Listing 4-5. DAI Macro Code
#include <sru.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,DAI_PBEN19_I);
Additional example code is available on the Analog Devices Web site.
L
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.
There is also a software plug-in called the Expert DAI that greatly
simplifies the task of connecting the signals described in this chap-
ter. This plug-in is described in Engineer-to-Engineer Note
EE-243, “Using the Expert DAI for ADSP-2126x and
ADSP-2136x SHARC Processors”. This EE note is also found on
the Analog Devices Web site.