diff options
| author | hathach <[email protected]> | 2018-12-07 23:38:52 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-07 23:38:52 +0700 |
| commit | 607658d047a3c27a096b9f6a25ea0a76f3d8735d (patch) | |
| tree | 3dba851636e65962ca00b092a9fd87f05db71589 /src/osal | |
| parent | e0199162637465b576b9f082404cf163c7cb1fef (diff) | |
rename MODE_HOST_SUPPORTED to TUSB_OPT_HOST_ENABLED
Diffstat (limited to 'src/osal')
| -rw-r--r-- | src/osal/osal_none.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osal/osal_none.h b/src/osal/osal_none.h index 4da5cffc8..ff37113c6 100644 --- a/src/osal/osal_none.h +++ b/src/osal/osal_none.h @@ -134,7 +134,7 @@ extern void dcd_int_disable(uint8_t rhport); extern void dcd_int_enable(uint8_t rhport);
#endif
-#if MODE_HOST_SUPPORTED
+#if TUSB_OPT_HOST_ENABLED
extern void hcd_int_disable(uint8_t rhport);
extern void hcd_int_enable(uint8_t rhport);
#endif
@@ -167,7 +167,7 @@ static inline void _osal_q_lock(osal_queue_t qhdl) if (qhdl->role == OPT_MODE_DEVICE) dcd_int_disable(TUD_OPT_RHPORT);
#endif
-#if MODE_HOST_SUPPORTED
+#if TUSB_OPT_HOST_ENABLED
if (qhdl->role == OPT_MODE_HOST) hcd_int_disable(TUH_OPT_RHPORT);
#endif
}
@@ -179,7 +179,7 @@ static inline void _osal_q_unlock(osal_queue_t qhdl) if (qhdl->role == OPT_MODE_DEVICE) dcd_int_enable(TUD_OPT_RHPORT);
#endif
-#if MODE_HOST_SUPPORTED
+#if TUSB_OPT_HOST_ENABLED
if (qhdl->role == OPT_MODE_HOST) hcd_int_enable(TUH_OPT_RHPORT);
#endif
}
|
