
USB Audio Design Guide 45/61
module_xud Low level USB library
module_usb_shared Common code for USB applications
module_usb_aud_shared Common code for USB audio applications
module_spdif_tx S/PDIF transmit code
module_spdif_rx S/PDIF receive code
module_adat_rx_v3 ADAT receive code
module_usb_midi MIDI I/O code
module_dfu Device Firmware Upgrade code
module_xmos_common Common build infrastructure
Figure 30:
USB Audio
Modules
app_usb_aud_l1 USB Audio 2.0 Reference Design code
app_usb_aud_l2 USB Audio 2.0 Multichannel Reference Design code
Figure 31:
USB Audio
Reference
Applications
4.3 A USB Audio Application (walkthrough)
This tutorial provides a walk through of the single tile USB Audio Reference Design
(L-Series) example, which can be found in the app_usb_aud_l1 directory.
In each application directory the src directory is arranged into two folders:
1.
An
core
directory containing source items that must be made available to the
USB Audio framework
2.
An
extensions
directory that includes extensions to the framework such as
CODEC config etc
The core folder for each application contains:
1. A .xn file to describe the hardware.
2. A custom defines file: customdefines.h for framework configuration
3.
A
ports.h
header file to contain the declarations of ports used in addition to
those declared in framework
4.3.1 Custom Defines
The
customdefines.h
file contains all the #defines required to tailor the USB audio
framework to the particular application at hand. First there are defines to determine
overall capability. For this reference design input and output, S/PDIF output and
DFU are enabled:
# i fndef AUDIO _CLAS S
# d efine AUDIO _CLAS S (2)
# e ndi f
REV 6.1
Comentários a estes Manuais