summaryrefslogtreecommitdiff
path: root/src/tusb.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-12-07 23:38:52 +0700
committerhathach <[email protected]>2018-12-07 23:38:52 +0700
commit607658d047a3c27a096b9f6a25ea0a76f3d8735d (patch)
tree3dba851636e65962ca00b092a9fd87f05db71589 /src/tusb.c
parente0199162637465b576b9f082404cf163c7cb1fef (diff)
rename MODE_HOST_SUPPORTED to TUSB_OPT_HOST_ENABLED
Diffstat (limited to 'src/tusb.c')
-rw-r--r--src/tusb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tusb.c b/src/tusb.c
index 931cc0ebe..4f7996664 100644
--- a/src/tusb.c
+++ b/src/tusb.c
@@ -55,7 +55,7 @@ bool tusb_init(void)
// skip if already initialized
if (_initialized) return true;
-#if MODE_HOST_SUPPORTED
+#if TUSB_OPT_HOST_ENABLED
TU_VERIFY( usbh_init() ); // init host stack
#endif
@@ -71,7 +71,7 @@ bool tusb_init(void)
#if CFG_TUSB_OS == OPT_OS_NONE
void tusb_task(void)
{
- #if MODE_HOST_SUPPORTED
+ #if TUSB_OPT_HOST_ENABLED
usbh_task(NULL);
#endif