rename MODE_HOST_SUPPORTED to TUSB_OPT_HOST_ENABLED
This commit is contained in:
@@ -47,7 +47,7 @@ extern void hal_dcd_isr(uint8_t rhport);
|
||||
|
||||
void USB_IRQHandler(void)
|
||||
{
|
||||
#if MODE_HOST_SUPPORTED
|
||||
#if TUSB_OPT_HOST_ENABLED
|
||||
hal_hcd_isr(0);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ extern void hal_hcd_isr(uint8_t hostid);
|
||||
#if CFG_TUSB_RHPORT0_MODE
|
||||
void USB0_IRQHandler(void)
|
||||
{
|
||||
#if MODE_HOST_SUPPORTED
|
||||
#if TUSB_OPT_HOST_ENABLED
|
||||
hal_hcd_isr(0);
|
||||
#endif
|
||||
|
||||
@@ -61,7 +61,7 @@ void USB0_IRQHandler(void)
|
||||
#if CFG_TUSB_RHPORT1_MODE
|
||||
void USB1_IRQHandler(void)
|
||||
{
|
||||
#if MODE_HOST_SUPPORTED
|
||||
#if TUSB_OPT_HOST_ENABLED
|
||||
hal_hcd_isr(1);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user