From 7faceeb02d7d2ff7bd79f1039e7900bbdbda9b11 Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 10 Apr 2018 19:44:08 +0700 Subject: rename ATTR_USB_MIN_ALIGNMENT to CFG_TUSB_MEM_ALIGN --- tinyusb/class/msc/msc_device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tinyusb/class/msc') 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 //--------------------------------------------------------------------+ -- cgit v1.3.1