diff options
| author | hathach <[email protected]> | 2018-08-30 16:12:34 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-08-30 16:12:34 +0700 |
| commit | dce2296756c44b6c49e7681401f48472ba6d213d (patch) | |
| tree | 8db356a9a70d050904e4fd1f051185c6326ce84e /src/device | |
| parent | e623fc656d4973ca32b8c9547409e65e12ad9b4c (diff) | |
allow no mode compilation (no host/device enabled). Handy for project without usb to compile such as nrf52832
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/usbd_auto_desc.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/device/usbd_auto_desc.c b/src/device/usbd_auto_desc.c index 22c66a38a..2d54a934d 100644 --- a/src/device/usbd_auto_desc.c +++ b/src/device/usbd_auto_desc.c @@ -38,13 +38,10 @@ #include "tusb_option.h" -#if TUSB_OPT_DEVICE_ENABLED - +#if TUSB_OPT_DEVICE_ENABLED && CFG_TUD_DESC_AUTO #include "tusb.h" -#if CFG_TUD_DESC_AUTO - //--------------------------------------------------------------------+ // Auto Description Default Configure & Validation //--------------------------------------------------------------------+ @@ -634,6 +631,3 @@ tud_desc_set_t const _usbd_auto_desc_set = }; #endif - - -#endif |
