rename CFG_TUSB_CONTROLLER_0_MODE to CFG_TUSB_RHPORT0_MODE

This commit is contained in:
hathach
2018-04-14 14:08:48 +07:00
parent 92b306d9bc
commit 29071c10b1
13 changed files with 41 additions and 41 deletions

View File

@@ -99,7 +99,7 @@ void board_init(void)
// USB0 Power: EA4357 channel B U20 GPIO26 active low (base board), P2_3 on LPC4357
scu_pinmux(0x02, 3, MD_PUP | MD_EZI, FUNC7); // USB0 VBus Power
#if CFG_TUSB_CONTROLLER_0_MODE & OPT_MODE_DEVICE
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
scu_pinmux(0x09, 5, GPIO_PDN, FUNC4); // P9_5 (GPIO5[18]) (GPIO28 on oem base) as USB connect, active low.
GPIO_SetDir(5, BIT_(18), 1);
#endif