Browse Source

Turn on current limit switch

main
PaulStoffregen 4 years ago
parent
commit
862bd128c3
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      ehci.cpp

+ 6
- 1
ehci.cpp View File

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);



Loading…
Cancel
Save