forked from PAWPAW-Mirror/lib_xua
Fixed MIDI build issues
This commit is contained in:
@@ -209,7 +209,11 @@ void xscope_user_init()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Core USB Audio functions - must be called on the Tile connected to the USB Phy */
|
/* Core USB Audio functions - must be called on the Tile connected to the USB Phy */
|
||||||
void usb_audio_core(chanend c_mix_out)
|
void usb_audio_core(chanend c_mix_out
|
||||||
|
#ifdef MIDI
|
||||||
|
, chanend c_midi
|
||||||
|
#endif
|
||||||
|
)
|
||||||
{
|
{
|
||||||
chan c_sof;
|
chan c_sof;
|
||||||
chan c_xud_out[EP_CNT_OUT]; /* Endpoint channels for XUD */
|
chan c_xud_out[EP_CNT_OUT]; /* Endpoint channels for XUD */
|
||||||
@@ -297,7 +301,11 @@ void usb_audio_core(chanend c_mix_out)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void usb_audio_io(chanend c_mix_out, chanend ?c_adc)
|
void usb_audio_io(chanend c_mix_out, chanend ?c_adc
|
||||||
|
#ifdef MIDI
|
||||||
|
, chanend c_midi
|
||||||
|
#endif
|
||||||
|
)
|
||||||
{
|
{
|
||||||
par
|
par
|
||||||
{
|
{
|
||||||
@@ -336,6 +344,8 @@ int main()
|
|||||||
chan c_mix_out;
|
chan c_mix_out;
|
||||||
#ifdef MIDI
|
#ifdef MIDI
|
||||||
chan c_midi;
|
chan c_midi;
|
||||||
|
#else
|
||||||
|
#define c_midi null
|
||||||
#endif
|
#endif
|
||||||
#ifdef IAP
|
#ifdef IAP
|
||||||
chan c_iap;
|
chan c_iap;
|
||||||
@@ -351,9 +361,17 @@ int main()
|
|||||||
|
|
||||||
par
|
par
|
||||||
{
|
{
|
||||||
on tile[XUD_TILE]: usb_audio_core(c_mix_out);
|
on tile[XUD_TILE]: usb_audio_core(c_mix_out
|
||||||
|
#ifdef MIDI
|
||||||
|
, c_midi
|
||||||
|
#endif
|
||||||
|
);
|
||||||
|
|
||||||
on tile[AUDIO_IO_TILE]: usb_audio_io(c_mix_out, c_adc);
|
on tile[AUDIO_IO_TILE]: usb_audio_io(c_mix_out, c_adc
|
||||||
|
#ifdef MIDI
|
||||||
|
, c_midi
|
||||||
|
#endif
|
||||||
|
);
|
||||||
|
|
||||||
USER_MAIN_CORES
|
USER_MAIN_CORES
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user