summaryrefslogtreecommitdiff
path: root/tinyusb/class/msc/msc_device.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-04-10 19:44:08 +0700
committerhathach <[email protected]>2018-04-10 19:49:00 +0700
commit7faceeb02d7d2ff7bd79f1039e7900bbdbda9b11 (patch)
tree03a3f57490ff405529e70c844d41f6f32bc5fd50 /tinyusb/class/msc/msc_device.c
parentfecef9ca427a928d9e21c468b5072cf604e0e109 (diff)
rename ATTR_USB_MIN_ALIGNMENT to CFG_TUSB_MEM_ALIGN
Diffstat (limited to 'tinyusb/class/msc/msc_device.c')
-rw-r--r--tinyusb/class/msc/msc_device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tinyusb/class/msc/msc_device.c b/tinyusb/class/msc/msc_device.c
index 0d7fa4f71..6117d1770 100644
--- a/tinyusb/class/msc/msc_device.c
+++ b/tinyusb/class/msc/msc_device.c
@@ -62,13 +62,13 @@ typedef struct {
// buffer for scsi's response other than read10 & write10.
// NOTE should be multiple of 64 to be compatible with lpc11/13u
uint8_t scsi_data[64];
- ATTR_USB_MIN_ALIGNMENT msc_cbw_t cbw;
+ CFG_TUSB_MEM_ALIGN msc_cbw_t cbw;
#if defined (__ICCARM__) && (CFG_TUSB_MCU == MCU_LPC11UXX || CFG_TUSB_MCU == MCU_LPC13UXX)
uint8_t padding1[64-sizeof(msc_cbw_t)]; // IAR cannot align struct's member
#endif
- ATTR_USB_MIN_ALIGNMENT msc_csw_t csw;
+ CFG_TUSB_MEM_ALIGN msc_csw_t csw;
uint8_t max_lun;
uint8_t interface_num;
@@ -79,7 +79,7 @@ typedef struct {
uint16_t xferred_len; // numbered of bytes transferred so far in the Data Stage
}mscd_interface_t;
-CFG_TUSB_ATTR_USBRAM ATTR_USB_MIN_ALIGNMENT STATIC_VAR mscd_interface_t mscd_data;
+CFG_TUSB_ATTR_USBRAM CFG_TUSB_MEM_ALIGN STATIC_VAR mscd_interface_t mscd_data;
//--------------------------------------------------------------------+
// INTERNAL OBJECT & FUNCTION DECLARATION
//--------------------------------------------------------------------+