Runtime fixes for DFU disable

This commit is contained in:
Ross Owen
2017-03-09 12:45:59 +00:00
parent 2371a58d90
commit 248b73e285
3 changed files with 6 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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