diff options
| author | sakumisu <[email protected]> | 2024-09-02 18:54:53 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-09-02 18:54:53 +0800 |
| commit | 1deab668ef65d2e06e926aa344e708cb2676f4da (patch) | |
| tree | ee84b51e0315722be3e389b9254d366900c8807b | |
| parent | fbe2e3f8a366aedd042fef5669c7c51105eb2595 (diff) | |
fix(port/ehci/usb_glue_ma35d0): fix typo
| -rw-r--r-- | port/ehci/usb_glue_ma35d0.c | 4 |
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--; |
