replace TUSB_CFG_HOST by MODE_HOST_SUPPORTED

move stuffs around
This commit is contained in:
hathach
2013-03-04 17:07:14 +07:00
parent 94c004724c
commit e1033b9b3c
10 changed files with 35 additions and 32 deletions

View File

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