diff options
| author | hathach <[email protected]> | 2014-03-12 15:11:48 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-03-12 15:11:48 +0700 |
| commit | 1e957bb6729b3f494a51ed2a5a77fdcf2d26af5f (patch) | |
| tree | 434607d9c7801814ffcaa58fadce229719209f27 /tinyusb/device | |
| parent | 92d28c96eb56d13fd6997568302dcb24a573c274 (diff) | |
change dcd 176x alignment placement to work with IAR
Diffstat (limited to 'tinyusb/device')
| -rw-r--r-- | tinyusb/device/dcd_lpc175x_6x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/device/dcd_lpc175x_6x.c b/tinyusb/device/dcd_lpc175x_6x.c index 5a799b24c..47a236a6f 100644 --- a/tinyusb/device/dcd_lpc175x_6x.c +++ b/tinyusb/device/dcd_lpc175x_6x.c @@ -55,7 +55,7 @@ #define DCD_QTD_MAX 32 // TODO scale with configure
typedef struct {
- volatile ATTR_ALIGNED(128) dcd_dma_descriptor_t* udca[DCD_QHD_MAX];
+ volatile dcd_dma_descriptor_t* udca[DCD_QHD_MAX]; // must be 128 byte aligned
dcd_dma_descriptor_t dd[DCD_QTD_MAX][2]; // each endpoints can have up to 2 DD queued at a time TODO 0-1 are not used, offset to reduce memory
uint8_t class_code[DCD_QHD_MAX];
@@ -68,7 +68,7 @@ typedef struct { }dcd_data_t;
-TUSB_CFG_ATTR_USBRAM STATIC_ dcd_data_t dcd_data;
+TUSB_CFG_ATTR_USBRAM ATTR_ALIGNED(128) STATIC_ dcd_data_t dcd_data;
//--------------------------------------------------------------------+
// INTERNAL OBJECT & FUNCTION DECLARATION
|
