diff options
| author | HiFiPhile <[email protected]> | 2024-05-24 12:25:12 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-24 12:25:12 +0200 |
| commit | 37e638b3dd67b1ef6e3aedad5bb0980a15b1184d (patch) | |
| tree | f1a4515b36dbfeda514be7fb59aa6939f91b30b8 /lib/rt-thread/tusb_config.h | |
| parent | 41c7cdac6835d45e336d71e3f4841e88a087316d (diff) | |
| parent | 2c880012f7904cc19c73e4e246214b75e61a44df (diff) | |
Merge pull request #2657 from Rbb666/rtthread
[osal]Add usb-device and host macro controls.
Diffstat (limited to 'lib/rt-thread/tusb_config.h')
| -rw-r--r-- | lib/rt-thread/tusb_config.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rt-thread/tusb_config.h b/lib/rt-thread/tusb_config.h index b3c3bf43f..11dc21983 100644 --- a/lib/rt-thread/tusb_config.h +++ b/lib/rt-thread/tusb_config.h @@ -152,12 +152,12 @@ extern "C" { #define CFG_TUH_ENABLED (0) #endif -#if (PKG_TINYUSB_HOST_PORT == 0) +#if (PKG_TINYUSB_HOST_PORT == 0) && defined(PKG_TINYUSB_HOST_ENABLE) #undef CFG_TUSB_RHPORT0_MODE #define CFG_TUSB_RHPORT0_MODE (OPT_MODE_HOST | PKG_TINYUSB_HOST_PORT_SPEED) #endif -#if (PKG_TINYUSB_HOST_PORT == 1) +#if (PKG_TINYUSB_HOST_PORT == 1) && defined(PKG_TINYUSB_HOST_ENABLE) #undef CFG_TUSB_RHPORT1_MODE #define CFG_TUSB_RHPORT1_MODE (OPT_MODE_HOST | PKG_TINYUSB_HOST_PORT_SPEED) #endif |
