diff options
| author | hathach <[email protected]> | 2013-04-08 14:57:00 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-04-08 14:57:00 +0700 |
| commit | 94e25880dc82120e14acd28411badf1e8b88958c (patch) | |
| tree | a11d853538766bbda1ec974824720f5b84c6c292 /tinyusb/hal | |
| parent | ef850984dae94b424959ebba5563aedeeeb3f52b (diff) | |
- add scu_pinmux(0x2, 5, MD_PLN | MD_EZI | MD_ZI, FUNC2); // USB1_VBUS monitor presence
- USB1 host run ok with NGX4330
Diffstat (limited to 'tinyusb/hal')
| -rw-r--r-- | tinyusb/hal/hal_lpc43xx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tinyusb/hal/hal_lpc43xx.c b/tinyusb/hal/hal_lpc43xx.c index 65cf7568a..5a86c23dd 100644 --- a/tinyusb/hal/hal_lpc43xx.c +++ b/tinyusb/hal/hal_lpc43xx.c @@ -78,6 +78,7 @@ tusb_error_t hal_init(void) #if TUSB_CFG_CONTROLLER1_MODE /* connect CLK_USB1 to 60 MHz clock */ CGU_EntityConnect(CGU_CLKSRC_PLL1, CGU_BASE_USB1); /* FIXME Run base BASE_USB1_CLK clock from PLL1 (assume PLL1 is 60 MHz, no division required) */ + LPC_CREG->CREG0 &= ~(1<<5); /* Turn on the phy */ LPC_SCU->SFSUSB = (TUSB_CFG_CONTROLLER1_MODE & TUSB_MODE_HOST) ? 0x16 : 0x12; // enable USB1 with on-chip FS PHY #if TUSB_CFG_CONTROLLER1_MODE & TUSB_MODE_HOST |
