diff options
| author | hathach <[email protected]> | 2018-03-22 16:46:14 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-22 16:46:14 +0700 |
| commit | 974e3865e8b9d2ca3a98df5b55a7373010d781e4 (patch) | |
| tree | 41d42de22ba4043f2c4177dce446256f47d9b41a /examples | |
| parent | e2739bb785352e299b6df2fd18c316209f4a86da (diff) | |
msc clean up
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/obsolete/device/src/tusb_config.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/obsolete/device/src/tusb_config.h b/examples/obsolete/device/src/tusb_config.h index 40b5d9a69..7d32350ff 100644 --- a/examples/obsolete/device/src/tusb_config.h +++ b/examples/obsolete/device/src/tusb_config.h @@ -111,6 +111,15 @@ #endif +// LPC11uxx and LPC13uxx requires each buffer has to be 64-byte alignment +#if TUSB_CFG_MCU == MCU_LPC11UXX || TUSB_CFG_MCU == MCU_LPC13UXX + #define ATTR_USB_MIN_ALIGNMENT ATTR_ALIGNED(64) +#elif defined NRF52840_XXAA + #define ATTR_USB_MIN_ALIGNMENT ATTR_ALIGNED(4) +#else + #define ATTR_USB_MIN_ALIGNMENT +#endif + #ifdef __cplusplus } |
