diff options
| author | hathach <[email protected]> | 2013-11-08 12:03:32 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-11-08 12:03:32 +0700 |
| commit | 15d3a418bd0d109d926ea95c3be1bbc83757734b (patch) | |
| tree | ce38570975a7009624c80075101cb8cc84083c2e /tinyusb/hal | |
| parent | 3945869cc267214a24fae94fe530fc3197348607 (diff) | |
add windows driver for cdc
add simple echo cdc serial demo
add cdc device send/receive API
refractor descriptor
refractor cdc.h
add usbd driver function
- init
- bus_reset
Diffstat (limited to 'tinyusb/hal')
| -rw-r--r-- | tinyusb/hal/hal_lpc43xx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tinyusb/hal/hal_lpc43xx.c b/tinyusb/hal/hal_lpc43xx.c index f9e0921b6..fc7b78904 100644 --- a/tinyusb/hal/hal_lpc43xx.c +++ b/tinyusb/hal/hal_lpc43xx.c @@ -72,6 +72,8 @@ static tusb_error_t hal_controller_reset(uint8_t coreid) tusb_error_t hal_init(void)
{
+ LPC_CREG->CREG0 &= ~(1<<5); /* Turn on the phy */
+
//------------- USB0 -------------//
#if TUSB_CFG_CONTROLLER_0_MODE
CGU_EnableEntity(CGU_CLKSRC_PLL0, DISABLE); /* Disable PLL first */
@@ -79,6 +81,7 @@ tusb_error_t hal_init(void) CGU_EntityConnect(CGU_CLKSRC_XTAL_OSC, CGU_CLKSRC_PLL0);
CGU_EnableEntity(CGU_CLKSRC_PLL0, ENABLE); /* Enable PLL after all setting is done */
+
// reset controller & set role
ASSERT_STATUS( hal_controller_reset(0) );
@@ -118,8 +121,6 @@ tusb_error_t hal_init(void) hal_interrupt_enable(1);
#endif
- LPC_CREG->CREG0 &= ~(1<<5); /* Turn on the phy */
-
return TUSB_ERROR_NONE;
}
|
