rename TUSB_OPT_HOST_ENABLED to CFG_TUH_ENABLED
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB0_IRQHandler(void)
|
||||
{
|
||||
#if TUSB_OPT_HOST_ENABLED
|
||||
#if CFG_TUH_ENABLED
|
||||
tuh_int_handler(0);
|
||||
#endif
|
||||
#if CFG_TUD_ENABLED
|
||||
|
||||
@@ -161,7 +161,7 @@ void board_init(void)
|
||||
LPC_USB->OTGClkCtrl = clk_en;
|
||||
while ( (LPC_USB->OTGClkSt & clk_en) != clk_en );
|
||||
|
||||
#if TUSB_OPT_HOST_ENABLED
|
||||
#if CFG_TUH_ENABLED
|
||||
// set portfunc to host !!!
|
||||
LPC_USB->StCtrl = 0x3; // should be 1
|
||||
#endif
|
||||
|
||||
@@ -135,7 +135,7 @@ void board_init(void)
|
||||
LPC_USB->OTGClkCtrl = clk_en;
|
||||
while ( (LPC_USB->OTGClkSt & clk_en) != clk_en );
|
||||
|
||||
#if TUSB_OPT_HOST_ENABLED
|
||||
#if CFG_TUH_ENABLED
|
||||
// set portfunc to host !!!
|
||||
LPC_USB->StCtrl = 0x3; // should be 1
|
||||
#endif
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB0_IRQHandler(void)
|
||||
{
|
||||
#if TUSB_OPT_HOST_ENABLED
|
||||
#if CFG_TUH_ENABLED
|
||||
tuh_int_handler(0);
|
||||
#endif
|
||||
#if CFG_TUD_ENABLED
|
||||
@@ -123,7 +123,7 @@ void board_init(void)
|
||||
GPIOB->AMSEL = TU_BIT(0) | TU_BIT(1);
|
||||
GPIOL->AMSEL = TU_BIT(6) | TU_BIT(7);
|
||||
|
||||
#if TUSB_OPT_HOST_ENABLED
|
||||
#if CFG_TUH_ENABLED
|
||||
/* USB PD6(EPEN) */
|
||||
bits = TU_BIT(3);
|
||||
SYSCTL->RCGCGPIO |= bits;
|
||||
@@ -144,7 +144,7 @@ void board_init(void)
|
||||
|
||||
USB0->CC = USB_CC_CLKEN | (3u << USB_CC_CLKDIV_S); /* 60MHz = 240MHz / 4 */
|
||||
__DMB(); /* Wait for completion of opening of the clock gate */
|
||||
#if TUSB_OPT_HOST_ENABLED
|
||||
#if CFG_TUH_ENABLED
|
||||
USB0->GPCS = USB_GPCS_DEVMOD_OTG;
|
||||
USB0->EPC = USB_EPC_EPENDE | USB_EPC_EPEN_HIGH;
|
||||
#endif
|
||||
|
||||
@@ -142,7 +142,7 @@ void board_init(void)
|
||||
|
||||
#endif
|
||||
|
||||
#if TUSB_OPT_HOST_ENABLED
|
||||
#if CFG_TUH_ENABLED
|
||||
// set portfunc to host !!!
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ void INT_Excep_SCI5_RXI5(void)
|
||||
//--------------------------------------------------------------------+
|
||||
void INT_Excep_USB0_USBI0(void)
|
||||
{
|
||||
#if TUSB_OPT_HOST_ENABLED
|
||||
#if CFG_TUH_ENABLED
|
||||
tuh_int_handler(0);
|
||||
#endif
|
||||
#if CFG_TUD_ENABLED
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
void USB0_Handler(void)
|
||||
{
|
||||
#if TUSB_OPT_HOST_ENABLED
|
||||
#if CFG_TUH_ENABLED
|
||||
tuh_int_handler(0);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user