Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High priority mode #415

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions lib_xud/src/core/XUD_Main.xc
Original file line number Diff line number Diff line change
Expand Up @@ -394,16 +394,12 @@ static int XUD_Manager_loop(XUD_chan epChans0[], XUD_chan epAddr_Ready[], chane

XUD_HAL_Mode_DataTransfer();

set_thread_fast_mode_on();

/* Run main IO loop */
/* flag0: Rx Error
flag1: Rx Active
flag2: Null / Valid Token */
noExit = XUD_LLD_IoLoop(p_usb_rxd, flag1_port, p_usb_txd, flag0_port, flag2_port, epTypeTableOut, epTypeTableIn, epAddr_Ready, noEpOut, c_sof);

set_thread_fast_mode_off();

if(!noExit)
break;
}
Expand Down Expand Up @@ -567,6 +563,8 @@ int XUD_Main(chanend c_ep_out[], int noEpOut,
XUD_EpType epTypeTableOut[], XUD_EpType epTypeTableIn[],
XUD_BusSpeed_t speed, XUD_PwrConfig pwrConfig)
{
set_core_high_priority_on();

g_desSpeed = speed;

SetupEndpoints(c_ep_out, noEpOut, c_ep_in, noEpIn, epTypeTableOut, epTypeTableIn);
Expand Down