浏览代码

Turn on current limit switch

main
PaulStoffregen 4 年前
父节点
当前提交
862bd128c3
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. +6
    -1
      ehci.cpp

+ 6
- 1
ehci.cpp 查看文件

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



正在加载...
取消
保存