瀏覽代碼

Turn on current limit switch

main
PaulStoffregen 4 年之前
父節點
當前提交
862bd128c3
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. +6
    -1
      ehci.cpp

+ 6
- 1
ehci.cpp 查看文件

@@ -205,7 +205,12 @@ void USBHost::begin()
USBPHY2_CTRL_CLR = USBPHY_CTRL_SFTRST | USBPHY_CTRL_CLKGATE;
USBPHY2_CTRL_SET = USBPHY_CTRL_ENUTMILEVEL2 | USBPHY_CTRL_ENUTMILEVEL3;
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
delay(10);


Loading…
取消
儲存