mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-17 08:45:13 +00:00
Guard clock setup for USB2
This commit is contained in:
parent
d749597591
commit
9ba1ba8fa1
@ -98,10 +98,6 @@ void board_init(void)
|
|||||||
CLOCK_EnableUsbhs0PhyPllClock(kCLOCK_Usbphy480M, 480000000U);
|
CLOCK_EnableUsbhs0PhyPllClock(kCLOCK_Usbphy480M, 480000000U);
|
||||||
CLOCK_EnableUsbhs0Clock(kCLOCK_Usb480M, 480000000U);
|
CLOCK_EnableUsbhs0Clock(kCLOCK_Usb480M, 480000000U);
|
||||||
|
|
||||||
// USB1
|
|
||||||
CLOCK_EnableUsbhs1PhyPllClock(kCLOCK_Usbphy480M, 480000000U);
|
|
||||||
CLOCK_EnableUsbhs1Clock(kCLOCK_Usb480M, 480000000U);
|
|
||||||
|
|
||||||
USBPHY_Type* usb_phy;
|
USBPHY_Type* usb_phy;
|
||||||
|
|
||||||
// RT105x RT106x have dual USB controller.
|
// RT105x RT106x have dual USB controller.
|
||||||
@ -125,6 +121,10 @@ void board_init(void)
|
|||||||
|
|
||||||
// RT105x RT106x have dual USB controller.
|
// RT105x RT106x have dual USB controller.
|
||||||
#ifdef USBPHY2
|
#ifdef USBPHY2
|
||||||
|
// USB1
|
||||||
|
CLOCK_EnableUsbhs1PhyPllClock(kCLOCK_Usbphy480M, 480000000U);
|
||||||
|
CLOCK_EnableUsbhs1Clock(kCLOCK_Usb480M, 480000000U);
|
||||||
|
|
||||||
usb_phy = USBPHY2;
|
usb_phy = USBPHY2;
|
||||||
|
|
||||||
// Enable PHY support for Low speed device + LS via FS Hub
|
// Enable PHY support for Low speed device + LS via FS Hub
|
||||||
|
Loading…
x
Reference in New Issue
Block a user