revert rhport config in nxp mcus

This commit is contained in:
hathach
2020-06-30 16:18:43 +07:00
parent ab75998316
commit f3a88477dc
7 changed files with 20 additions and 20 deletions
+4 -4
View File
@@ -149,7 +149,7 @@ void board_init(void)
* status feedback from the distribution switch. GPIO54 is used for VBUS sensing. 15Kohm pull-down
* resistors are always active
*/
#if CFG_TUSB_RHPORT0_MODE & (OPT_MODE_DEVICE | OPT_MODE_HOST)
#if CFG_TUSB_RHPORT0_MODE
Chip_USB0_Init();
// // Reset controller
@@ -185,7 +185,7 @@ void board_init(void)
* of VBUS can be read via U31.
* JP16 shall not be inserted.
*/
#if CFG_TUSB_RHPORT0_MODE & ((OPT_MODE_DEVICE | OPT_MODE_HOST) << 8)
#if CFG_TUSB_RHPORT1_MODE
Chip_USB1_Init();
// // Reset controller
@@ -232,11 +232,11 @@ void USB0_IRQHandler(void)
void USB1_IRQHandler(void)
{
#if CFG_TUSB_RHPORT0_MODE & (OPT_MODE_HOST << 8)
#if CFG_TUSB_RHPORT1_MODE & OPT_MODE_HOST
tuh_isr(1);
#endif
#if CFG_TUSB_RHPORT0_MODE & (OPT_MODE_DEVICE << 8)
#if CFG_TUSB_RHPORT1_MODE & OPT_MODE_DEVICE
tud_int_handler(1);
#endif
}