Fixes for XUA_USB_EN=0

This commit is contained in:
Ross Owen
2023-10-30 13:33:53 +00:00
parent 5e5b2b7bd5
commit 29156d5b19

View File

@@ -336,7 +336,7 @@ void usb_audio_io(chanend ?c_aud_in,
par par
{ {
#if (MIXER) #if (MIXER && XUA_USB_EN)
/* Mixer cores(s) */ /* Mixer cores(s) */
{ {
thread_speed(); thread_speed();
@@ -493,14 +493,12 @@ int main()
on tile[XUD_TILE]: on tile[XUD_TILE]:
par par
{ {
#if (XUD_TILE == 0) #if XUA_USB_EN
#if ((XUD_TILE == 0) && (XUA_DFU_EN == 1))
/* Check if USB is on the flash tile (tile 0) */ /* Check if USB is on the flash tile (tile 0) */
#if (XUA_DFU_EN == 1)
[[distribute]] [[distribute]]
DFUHandler(dfuInterface, null); DFUHandler(dfuInterface, null);
#endif #endif
#endif
#if XUA_USB_EN
/* Core USB task, buffering, USB etc */ /* Core USB task, buffering, USB etc */
{ {