|
|
|
|
|
|
|
|
USBPHY2_CTRL_CLR = USBPHY_CTRL_SFTRST | USBPHY_CTRL_CLKGATE; |
|
|
USBPHY2_CTRL_CLR = USBPHY_CTRL_SFTRST | USBPHY_CTRL_CLKGATE; |
|
|
USBPHY2_CTRL_SET = USBPHY_CTRL_ENUTMILEVEL2 | USBPHY_CTRL_ENUTMILEVEL3; |
|
|
USBPHY2_CTRL_SET = USBPHY_CTRL_ENUTMILEVEL2 | USBPHY_CTRL_ENUTMILEVEL3; |
|
|
USBPHY2_PWD = 0; |
|
|
USBPHY2_PWD = 0; |
|
|
|
|
|
|
|
|
|
|
|
#ifdef ARDUINO_TEENSY41 |
|
|
|
|
|
IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_40 = 5; |
|
|
|
|
|
IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_40 = 0x0008; // slow speed, weak 150 ohm drive |
|
|
|
|
|
GPIO8_GDIR |= 1<<26; |
|
|
|
|
|
GPIO8_DR_SET = 1<<26; |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
delay(10); |
|
|
delay(10); |
|
|
|
|
|
|