From 8a05fc4656defc2b99b7809806d946e4ce593d5e Mon Sep 17 00:00:00 2001 From: Daniel Pieczko Date: Thu, 5 Dec 2024 10:33:41 +0000 Subject: [PATCH 1/2] Remove fast mode enable/disable around IO loop --- lib_xud/src/core/XUD_Main.xc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib_xud/src/core/XUD_Main.xc b/lib_xud/src/core/XUD_Main.xc index 5709c77d..5bfd230f 100755 --- a/lib_xud/src/core/XUD_Main.xc +++ b/lib_xud/src/core/XUD_Main.xc @@ -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; } From 11239858066d1bea01fb1fb6ba8b1fa3a7281e53 Mon Sep 17 00:00:00 2001 From: Daniel Pieczko Date: Thu, 5 Dec 2024 10:44:56 +0000 Subject: [PATCH 2/2] Enable high priority mode at beginning of XUD_Main --- lib_xud/src/core/XUD_Main.xc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib_xud/src/core/XUD_Main.xc b/lib_xud/src/core/XUD_Main.xc index 5bfd230f..55fbfdc3 100755 --- a/lib_xud/src/core/XUD_Main.xc +++ b/lib_xud/src/core/XUD_Main.xc @@ -563,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);