Pārlūkot izejas kodu

Turn on PHY support for low speed

main
PaulStoffregen pirms 7 gadiem
vecāks
revīzija
f1c0481d89
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. +1
    -0
      k66_usbhost.ino

+ 1
- 0
k66_usbhost.ino Parādīt failu

print("init USBHS PHY & PLL"); print("init USBHS PHY & PLL");
// init process: page 1681-1682 // init process: page 1681-1682
USBPHY_CTRL_CLR = (USBPHY_CTRL_SFTRST | USBPHY_CTRL_CLKGATE); // // CTRL pg 1698 USBPHY_CTRL_CLR = (USBPHY_CTRL_SFTRST | USBPHY_CTRL_CLKGATE); // // CTRL pg 1698
USBPHY_CTRL_SET = USBPHY_CTRL_ENUTMILEVEL2 | USBPHY_CTRL_ENUTMILEVEL3;
USBPHY_TRIM_OVERRIDE_EN_SET = 1; USBPHY_TRIM_OVERRIDE_EN_SET = 1;
USBPHY_PLL_SIC = USBPHY_PLL_SIC_PLL_POWER | USBPHY_PLL_SIC_PLL_ENABLE | USBPHY_PLL_SIC = USBPHY_PLL_SIC_PLL_POWER | USBPHY_PLL_SIC_PLL_ENABLE |
USBPHY_PLL_SIC_PLL_DIV_SEL(1) | USBPHY_PLL_SIC_PLL_EN_USB_CLKS; USBPHY_PLL_SIC_PLL_DIV_SEL(1) | USBPHY_PLL_SIC_PLL_EN_USB_CLKS;

Notiek ielāde…
Atcelt
Saglabāt