allow no mode compilation (no host/device enabled). Handy for project without usb to compile such as nrf52832

This commit is contained in:
hathach
2018-08-30 16:12:34 +07:00
parent e623fc656d
commit dce2296756
3 changed files with 15 additions and 31 deletions

View File

@@ -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