USB Audio Design Guide
{
# ifdef MIXER
# define AUDIO_CHANNEL c_mix_out
# else
# define AUDIO_CHANNEL c_aud_in
# endif
# if defined ( SPDIF_TX ) && ( SPDIF_TX_TILE != AUDIO_IO_TILE )
# endif
# if defined ( SPDIF_RX ) || defined ( ADAT_RX )
# endif
# if XUD_TILE != 0
# endif
# if ( NUM_PDM_MICS > 0)
# endif
# ifdef RUN_DSP_TASK
# endif
}
# if defined ( SPDIF_RX ) || defined ( ADAT_RX )
{
}
# endif
Finally, if MIDI is enabled you need a core to drive the MIDI input and output.
The MIDI core also optionally handles authentication with Apple devices. Due to
licensing issues this code is only available to Apple MFI licensees. Please contact
XMOS for details.
on tile [ MIDI_TILE ]:
{
}
5.7 Adding Custom Code
The flexibility of the USB audio solution means that you can modify the reference
applications to change the feature set or add extra functionality. Any part of the
software can be altered with the exception of the XUD library.
XM0088546.1
thread_speed () ;
audio ( AUDIO_CHANNEL ,
c_spdif_tx ,
c_dig_rx ,
c_aud_cfg , c_adc
, dfuInterface
, c_pdm_pcm
, i_dsp
) ;
thread_speed () ;
clockGen ( c_spdif_rx , c_adat_rx , p_pll_clk , c_dig_rx , c_clk_ctl ,
c_clk_int ) ;
thread_speed () ;
usb_midi ( p_midi_rx , p_midi_tx , clk_midi , c_midi , 0 , null , null , null ,
null ) ;
60/110
Need help?
Do you have a question about the xCORE-200 Multi-channel Audio board and is the answer not in the manual?
Questions and answers