forked from PAWPAW-Mirror/lib_xua
PwrConfig param added to XUD_Manager call
This commit is contained in:
@@ -191,6 +191,13 @@ void xscope_user_init()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef SELF_POWERED
|
||||||
|
#define pwrConfig XUD_PWR_SELF
|
||||||
|
#else
|
||||||
|
#define pwrConfig XUD_PWR_BUS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
chan c_sof;
|
chan c_sof;
|
||||||
@@ -223,6 +230,8 @@ int main()
|
|||||||
chan c_buff_ctrl;
|
chan c_buff_ctrl;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
par
|
par
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -230,11 +239,11 @@ int main()
|
|||||||
#if (AUDIO_CLASS==2)
|
#if (AUDIO_CLASS==2)
|
||||||
on tile[0]: XUD_Manager(c_xud_out, EP_CNT_OUT, c_xud_in, EP_CNT_IN,
|
on tile[0]: XUD_Manager(c_xud_out, EP_CNT_OUT, c_xud_in, EP_CNT_IN,
|
||||||
c_sof, epTypeTableOut, epTypeTableIn, p_usb_rst,
|
c_sof, epTypeTableOut, epTypeTableIn, p_usb_rst,
|
||||||
clk, 1, XUD_SPEED_HS, c_usb_test);
|
clk, 1, XUD_SPEED_HS, c_usb_test, pwrConfig);
|
||||||
#else
|
#else
|
||||||
on tile[0]:XUD_Manager(c_xud_out, EP_CNT_OUT, c_xud_in, EP_CNT_IN,
|
on tile[0]:XUD_Manager(c_xud_out, EP_CNT_OUT, c_xud_in, EP_CNT_IN,
|
||||||
c_sof, epTypeTableOut, epTypeTableIn, p_usb_rst,
|
c_sof, epTypeTableOut, epTypeTableIn, p_usb_rst,
|
||||||
clk, 1, XUD_SPEED_FS, c_usb_test);
|
clk, 1, XUD_SPEED_FS, c_usb_test, pwrConfig);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
on tile[0]:
|
on tile[0]:
|
||||||
|
|||||||
Reference in New Issue
Block a user