diff options
| author | hathach <[email protected]> | 2013-03-04 17:07:14 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-03-04 17:07:14 +0700 |
| commit | e1033b9b3c10a75fece0c2c398f5ed3f4b08d174 (patch) | |
| tree | 46187ad8c70499817072700c268a5632ad5bf46c /tinyusb/tusb.h | |
| parent | 94c004724ccbe2b74af74fc1753184f6b3ccb9cf (diff) | |
replace TUSB_CFG_HOST by MODE_HOST_SUPPORTED
move stuffs around
Diffstat (limited to 'tinyusb/tusb.h')
| -rw-r--r-- | tinyusb/tusb.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tinyusb/tusb.h b/tinyusb/tusb.h index 1129fec6a..8bc4d7af4 100644 --- a/tinyusb/tusb.h +++ b/tinyusb/tusb.h @@ -52,7 +52,7 @@ #include "hal/hal.h" #include "osal/osal.h" -#ifdef TUSB_CFG_HOST +#if MODE_HOST_SUPPORTED #include "host/usbh.h" #ifdef HOST_CLASS_HID @@ -60,7 +60,7 @@ #endif #endif -#ifdef TUSB_CFG_DEVICE +#if MODE_DEVICE_SUPPORTED #include "device/dcd.h" #if DEVICE_CLASS_HID @@ -72,9 +72,7 @@ #endif #endif -#if !(defined TUSB_CFG_HOST) && !(defined TUSB_CFG_DEVICE) - #error please enable either TUSB_CFG_HOST or TUSB_CFG_DEVICE -#endif + tusb_error_t tusb_init(void); |
