diff options
| author | hathach <[email protected]> | 2013-11-25 12:48:27 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-11-25 12:48:27 +0700 |
| commit | a5ba28355782eedb967c4ec41a5b83323118251d (patch) | |
| tree | 4f4fa0bfa3ba3fb8d781690fb3649ae834541ee0 /tinyusb/device | |
| parent | 41ffcaf4a508a421a49d8650777d8b0325b28921 (diff) | |
change MCU to TUSB_CFG_MCU
Diffstat (limited to 'tinyusb/device')
| -rw-r--r-- | tinyusb/device/dcd_lpc175x_6x.c | 2 | ||||
| -rw-r--r-- | tinyusb/device/dcd_lpc43xx.c | 2 | ||||
| -rw-r--r-- | tinyusb/device/dcd_lpc_11uxx_13uxx.c | 2 | ||||
| -rw-r--r-- | tinyusb/device/usbd.c | 2 | ||||
| -rw-r--r-- | tinyusb/device/usbd.h | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/tinyusb/device/dcd_lpc175x_6x.c b/tinyusb/device/dcd_lpc175x_6x.c index bb6410e02..4e95f03da 100644 --- a/tinyusb/device/dcd_lpc175x_6x.c +++ b/tinyusb/device/dcd_lpc175x_6x.c @@ -38,7 +38,7 @@ #include "tusb_option.h" -#if MODE_DEVICE_SUPPORTED && (MCU == MCU_LPC175X_6X) +#if MODE_DEVICE_SUPPORTED && (TUSB_CFG_MCU == MCU_LPC175X_6X) #define _TINY_USB_SOURCE_FILE_ //--------------------------------------------------------------------+ diff --git a/tinyusb/device/dcd_lpc43xx.c b/tinyusb/device/dcd_lpc43xx.c index 152b384d5..296a19a6c 100644 --- a/tinyusb/device/dcd_lpc43xx.c +++ b/tinyusb/device/dcd_lpc43xx.c @@ -38,7 +38,7 @@ #include "tusb_option.h"
-#if MODE_DEVICE_SUPPORTED && MCU == MCU_LPC43XX
+#if MODE_DEVICE_SUPPORTED && TUSB_CFG_MCU == MCU_LPC43XX
#define _TINY_USB_SOURCE_FILE_
//--------------------------------------------------------------------+
diff --git a/tinyusb/device/dcd_lpc_11uxx_13uxx.c b/tinyusb/device/dcd_lpc_11uxx_13uxx.c index 209462ef9..22dcaafa0 100644 --- a/tinyusb/device/dcd_lpc_11uxx_13uxx.c +++ b/tinyusb/device/dcd_lpc_11uxx_13uxx.c @@ -38,7 +38,7 @@ #include "tusb_option.h"
-#if MODE_DEVICE_SUPPORTED && (MCU == MCU_LPC11UXX || MCU == MCU_LPC13UXX)
+#if MODE_DEVICE_SUPPORTED && (TUSB_CFG_MCU == MCU_LPC11UXX || TUSB_CFG_MCU == MCU_LPC13UXX)
#define _TINY_USB_SOURCE_FILE_
//--------------------------------------------------------------------+
diff --git a/tinyusb/device/usbd.c b/tinyusb/device/usbd.c index fd62874b3..77346fc05 100644 --- a/tinyusb/device/usbd.c +++ b/tinyusb/device/usbd.c @@ -50,7 +50,7 @@ #include "usbd_dcd.h" // Some MCUs cannot transfer more than 64 bytes each queue, thus require special task-alike treatment -#if MCU == MCU_LPC11UXX || MCU == MCU_LPC175X_6X +#if TUSB_CFG_MCU == MCU_LPC11UXX || TUSB_CFG_MCU == MCU_LPC175X_6X #define USBD_CONTROL_ONE_PACKET_EACH_XFER // for each Transfer, cannot queue more than packet size enum { USBD_COTNROL_MAX_LENGTH_EACH_XFER = 64 diff --git a/tinyusb/device/usbd.h b/tinyusb/device/usbd.h index 6128f506d..d1e71c0dd 100644 --- a/tinyusb/device/usbd.h +++ b/tinyusb/device/usbd.h @@ -58,7 +58,7 @@ #endif // LPC11uxx and LPC13uxx requires each buffer has to be 64-byte alignment -#if MCU == MCU_LPC11UXX || MCU == MCU_LPC13UXX +#if TUSB_CFG_MCU == MCU_LPC11UXX || TUSB_CFG_MCU == MCU_LPC13UXX #define ATTR_USB_MIN_ALIGNMENT ATTR_ALIGNED(64) #else #define ATTR_USB_MIN_ALIGNMENT |
