summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2024-09-02 18:54:53 +0800
committersakumisu <[email protected]>2024-09-02 18:54:53 +0800
commit1deab668ef65d2e06e926aa344e708cb2676f4da (patch)
treeee84b51e0315722be3e389b9254d366900c8807b
parentfbe2e3f8a366aedd042fef5669c7c51105eb2595 (diff)
fix(port/ehci/usb_glue_ma35d0): fix typo
-rw-r--r--port/ehci/usb_glue_ma35d0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/port/ehci/usb_glue_ma35d0.c b/port/ehci/usb_glue_ma35d0.c
index 76e621ef..3e03bbd8 100644
--- a/port/ehci/usb_glue_ma35d0.c
+++ b/port/ehci/usb_glue_ma35d0.c
@@ -57,7 +57,7 @@ void usb_hc_low_level_init(struct usbh_bus *bus)
SYS->MISCFCR0 &= ~SYS_MISCFCR0_UHOVRCURH_Msk;
while (1) {
rt_thread_mdelay(1);
- if ((SYS->USBPMISCR & SYS_USBPMISCR_PHY0HSTCKSTB_Msk) &&)
+ if (SYS->USBPMISCR & SYS_USBPMISCR_PHY0HSTCKSTB_Msk)
break; /* both USB PHY0 and PHY1 clock 60MHz UTMI clock stable */
timeout--;
@@ -88,7 +88,7 @@ void usb_hc_low_level_init(struct usbh_bus *bus)
SYS->MISCFCR0 &= ~SYS_MISCFCR0_UHOVRCURH_Msk;
while (1) {
rt_thread_mdelay(1);
- if ((SYS->USBPMISCR & SYS_USBPMISCR_PHY1HSTCKSTB_Msk))
+ if (SYS->USBPMISCR & SYS_USBPMISCR_PHY1HSTCKSTB_Msk)
break; /* both USB PHY0 and PHY1 clock 60MHz UTMI clock stable */
timeout--;