diff options
| author | hathach <[email protected]> | 2022-02-23 21:49:11 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-02-25 18:35:21 +0700 |
| commit | 31aa077cb0b345464548b9cb2e2913227348a969 (patch) | |
| tree | fd138a0d98321e3591cd70a7960ce4468910e2ba /src/tusb.c | |
| parent | d10326cb4e0f48a05bc39c6f51b7b0fb29427cc9 (diff) | |
rename TUSB_OPT_HOST_ENABLED to CFG_TUH_ENABLED
Diffstat (limited to 'src/tusb.c')
| -rw-r--r-- | src/tusb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tusb.c b/src/tusb.c index cad434a92..03fe43104 100644 --- a/src/tusb.c +++ b/src/tusb.c @@ -26,7 +26,7 @@ #include "tusb_option.h" -#if TUSB_OPT_HOST_ENABLED || CFG_TUD_ENABLED +#if CFG_TUH_ENABLED || CFG_TUD_ENABLED #include "tusb.h" @@ -41,7 +41,7 @@ bool tusb_init(void) TU_ASSERT ( tud_init(TUD_OPT_RHPORT) ); // init device stack #endif -#if TUSB_OPT_HOST_ENABLED +#if CFG_TUH_ENABLED TU_ASSERT( tuh_init(TUH_OPT_RHPORT) ); // init host stack #endif @@ -56,7 +56,7 @@ bool tusb_inited(void) ret = ret || tud_inited(); #endif -#if TUSB_OPT_HOST_ENABLED +#if CFG_TUH_ENABLED ret = ret || tuh_inited(); #endif |
