fix(hal): correct PHY selection logic in usb_wrap_ll.h

This commit is contained in:
Tinyu
2025-11-12 09:26:45 +01:00
committed by Tomas Rezucha
parent 34ff2409dc
commit af7e6db089
@@ -59,8 +59,10 @@ FORCE_INLINE_ATTR void usb_wrap_ll_phy_select(usb_wrap_dev_t *hw, unsigned int p
switch (phy_idx) { switch (phy_idx) {
case 0: case 0:
LP_SYS.usb_ctrl.sw_usb_phy_sel = true; LP_SYS.usb_ctrl.sw_usb_phy_sel = true;
break;
case 1: case 1:
LP_SYS.usb_ctrl.sw_usb_phy_sel = false; LP_SYS.usb_ctrl.sw_usb_phy_sel = false;
break;
default: default:
break; break;
} }