rename MODE_HOST_SUPPORTED to TUSB_OPT_HOST_ENABLED

This commit is contained in:
hathach
2018-12-07 23:38:52 +07:00
parent e019916263
commit 607658d047
17 changed files with 22 additions and 29 deletions

View File

@@ -148,7 +148,7 @@ void board_init(void)
LPC_USB->OTGClkCtrl = clk_en;
while ( (LPC_USB->OTGClkSt & clk_en) != clk_en );
#if MODE_HOST_SUPPORTED
#if TUSB_OPT_HOST_ENABLED
// set portfunc to host !!!
LPC_USB->StCtrl = 0x3; // should be 1
#endif