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

@@ -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

View File

@@ -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