diff options
| author | hathach <[email protected]> | 2018-12-05 13:20:25 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-05 13:20:25 +0700 |
| commit | a73017fdc23f7bedf38e754cba3a4ffbcf8d4c27 (patch) | |
| tree | 04c68202c20a45318ea61d27fede4bfd12e0beac /hw | |
| parent | 6048a3bff48dc588849f83f4088367d20b6bc651 (diff) | |
hal clean up
- replace tusb_hal_int_enable/disable to dcd_int_enable/disable,
hcd_int_enable/disable
- remove tusb_hal_init(), this will be part of dcd_init/hcd_init,
anything beyond dcd/hcd should be inited by bsp
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/bsp/ea4357/board_ea4357.c | 2 | ||||
| -rw-r--r-- | hw/bsp/mcb1800/board_mcb1800.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/hw/bsp/ea4357/board_ea4357.c b/hw/bsp/ea4357/board_ea4357.c index 42b71e992..eb447518c 100644 --- a/hw/bsp/ea4357/board_ea4357.c +++ b/hw/bsp/ea4357/board_ea4357.c @@ -188,6 +188,7 @@ void board_init(void) // Reset controller LPC_USB0->USBCMD_D |= 0x02; + while( LPC_USB0->USBCMD_D & 0x02 ) {} // Set mode #if CFG_TUSB_RHPORT0_MODE & OPT_MODE_HOST @@ -204,6 +205,7 @@ void board_init(void) // Reset controller LPC_USB1->USBCMD_D |= 0x02; + while( LPC_USB1->USBCMD_D & 0x02 ) {} // Set mode #if CFG_TUSB_RHPORT1_MODE & OPT_MODE_HOST diff --git a/hw/bsp/mcb1800/board_mcb1800.c b/hw/bsp/mcb1800/board_mcb1800.c index 5b7a846ef..8474fbff3 100644 --- a/hw/bsp/mcb1800/board_mcb1800.c +++ b/hw/bsp/mcb1800/board_mcb1800.c @@ -159,6 +159,7 @@ void board_init(void) // Reset controller LPC_USB0->USBCMD_D |= 0x02; + while( LPC_USB0->USBCMD_D & 0x02 ) {} // Set mode #if CFG_TUSB_RHPORT0_MODE & OPT_MODE_HOST @@ -175,6 +176,7 @@ void board_init(void) // Reset controller LPC_USB1->USBCMD_D |= 0x02; + while( LPC_USB1->USBCMD_D & 0x02 ) {} // Set mode #if CFG_TUSB_RHPORT1_MODE & OPT_MODE_HOST |
