diff options
| author | hathach <[email protected]> | 2013-11-11 12:48:21 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-11-11 12:48:21 +0700 |
| commit | f00a4b448d85c4cf36edb8dc7245d7c3fa1c07ec (patch) | |
| tree | 8a0187580fbc26779f32515d54cb5e2a4190f4b8 /tinyusb/device/usbd.h | |
| parent | 9cb99d371693a4294d8d9fb190ca23c1043da755 (diff) | |
adding support for lpc13uxx
Diffstat (limited to 'tinyusb/device/usbd.h')
| -rw-r--r-- | tinyusb/device/usbd.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tinyusb/device/usbd.h b/tinyusb/device/usbd.h index b52f8dc2d..2f3201d98 100644 --- a/tinyusb/device/usbd.h +++ b/tinyusb/device/usbd.h @@ -53,12 +53,17 @@ #include "osal/osal.h" #include "dcd.h" -//#include "tusb_descriptors.h" - #ifdef __cplusplus extern "C" { #endif +// LPC11uxx and LPC13uxx requires each buffer has to be 64-byte alignment +#if MCU == MCU_LPC11UXX || MCU == MCU_LPC13UXX + #define ATTR_USB_MIN_ALIGNMENT ATTR_ALIGNED(64) +#else + #define ATTR_USB_MIN_ALIGNMENT +#endif + //--------------------------------------------------------------------+ // MACRO CONSTANT TYPEDEF //--------------------------------------------------------------------+ @@ -85,7 +90,6 @@ bool tusbd_is_configured(uint8_t coreid) ATTR_WARN_UNUSED_RESULT; #ifdef _TINY_USB_SOURCE_FILE_ tusb_error_t usbd_init(void); -tusb_error_t usbd_pipe_open(uint8_t coreid, tusb_descriptor_interface_t const * p_interfacae, tusb_descriptor_endpoint_t const * p_endpoint_desc); #endif |
