forked from PAWPAW-Mirror/lib_xua
Runtime fixes for DFU disable
This commit is contained in:
@@ -1114,7 +1114,7 @@ chanend c_dig_rx,
|
||||
#endif
|
||||
chanend ?c_config, chanend ?c
|
||||
#if XUD_TILE != 0
|
||||
, server interface i_dfu dfuInterface
|
||||
, server interface i_dfu ?dfuInterface
|
||||
#endif
|
||||
#if (NUM_PDM_MICS > 0)
|
||||
, chanend c_pdm_in
|
||||
@@ -1382,6 +1382,7 @@ chanend ?c_config, chanend ?c
|
||||
curSamRes_DAC = inuint(c_mix_out);
|
||||
}
|
||||
|
||||
#ifdef DFU
|
||||
/* Currently no more audio will happen after this point */
|
||||
if ((curSamFreq / AUD_TO_USB_RATIO) == AUDIO_STOP_FOR_DFU)
|
||||
{
|
||||
@@ -1410,6 +1411,8 @@ chanend ?c_config, chanend ?c
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* NO_USB */
|
||||
|
||||
#ifdef SPDIF_TX
|
||||
|
||||
@@ -38,7 +38,7 @@ void audio(chanend c_in,
|
||||
#endif
|
||||
chanend ?c_config, chanend ?c_adc
|
||||
#if (XUD_TILE != 0)
|
||||
, server interface i_dfu dfuInterface
|
||||
, server interface i_dfu ?dfuInterface
|
||||
#endif
|
||||
#if (NUM_PDM_MICS > 0)
|
||||
, chanend c_pdm_in
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
* endpoint manager if present
|
||||
*/
|
||||
void Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioCtrl,
|
||||
chanend ?c_mix_ctl,chanend ?c_clk_ctl, chanend ?c_EANativeTransport_ctr, client interface i_dfu dfuInterface
|
||||
chanend ?c_mix_ctl,chanend ?c_clk_ctl, chanend ?c_EANativeTransport_ctr, client interface i_dfu ?dfuInterface
|
||||
VENDOR_REQUESTS_PARAMS_DEC_);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user