diff options
Diffstat (limited to 'tinyusb/tusb.h')
| -rw-r--r-- | tinyusb/tusb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tinyusb/tusb.h b/tinyusb/tusb.h index 9eb153371..8d1fd66bc 100644 --- a/tinyusb/tusb.h +++ b/tinyusb/tusb.h @@ -58,6 +58,10 @@ #include "device/dcd.h" #endif +#if !(defined TUSB_CFG_HOST) && !(defined TUSB_CFG_DEVICE) + #error please enable either TUSB_CFG_HOST or TUSB_CFG_DEVICE +#endif + #if DEVICE_CLASS_HID #include "class/hid.h" #endif |
