summaryrefslogtreecommitdiff
path: root/examples
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 /examples
parentfecef9ca427a928d9e21c468b5072cf604e0e109 (diff)
rename ATTR_USB_MIN_ALIGNMENT to CFG_TUSB_MEM_ALIGN
Diffstat (limited to 'examples')
-rw-r--r--examples/device/nrf52840/src/msc_device_ramdisk.c2
-rw-r--r--examples/device/nrf52840/src/tusb_config.h6
-rw-r--r--examples/obsolete/device/src/tusb_config.h6
3 files changed, 7 insertions, 7 deletions
diff --git a/examples/device/nrf52840/src/msc_device_ramdisk.c b/examples/device/nrf52840/src/msc_device_ramdisk.c
index b19b37252..45932e0c3 100644
--- a/examples/device/nrf52840/src/msc_device_ramdisk.c
+++ b/examples/device/nrf52840/src/msc_device_ramdisk.c
@@ -47,7 +47,7 @@
//--------------------------------------------------------------------+
// INTERNAL OBJECT & FUNCTION DECLARATION
//--------------------------------------------------------------------+
-CFG_TUSB_ATTR_USBRAM ATTR_USB_MIN_ALIGNMENT
+CFG_TUSB_ATTR_USBRAM CFG_TUSB_MEM_ALIGN
uint8_t msc_device_ramdisk[DISK_BLOCK_NUM][DISK_BLOCK_SIZE] =
{
//------------- Boot Sector -------------//
diff --git a/examples/device/nrf52840/src/tusb_config.h b/examples/device/nrf52840/src/tusb_config.h
index d3e798f44..11d0bbdf9 100644
--- a/examples/device/nrf52840/src/tusb_config.h
+++ b/examples/device/nrf52840/src/tusb_config.h
@@ -77,11 +77,11 @@
// LPC11uxx and LPC13uxx requires each buffer has to be 64-byte alignment
#if CFG_TUSB_MCU == MCU_LPC11UXX || CFG_TUSB_MCU == MCU_LPC13UXX
- #define ATTR_USB_MIN_ALIGNMENT ATTR_ALIGNED(64)
+ #define CFG_TUSB_MEM_ALIGN ATTR_ALIGNED(64)
#elif defined NRF52840_XXAA
- #define ATTR_USB_MIN_ALIGNMENT ATTR_ALIGNED(4)
+ #define CFG_TUSB_MEM_ALIGN ATTR_ALIGNED(4)
#else
- #define ATTR_USB_MIN_ALIGNMENT
+ #define CFG_TUSB_MEM_ALIGN
#endif
#ifdef __cplusplus
diff --git a/examples/obsolete/device/src/tusb_config.h b/examples/obsolete/device/src/tusb_config.h
index 5f1f75b38..7544fa8b4 100644
--- a/examples/obsolete/device/src/tusb_config.h
+++ b/examples/obsolete/device/src/tusb_config.h
@@ -112,11 +112,11 @@
// LPC11uxx and LPC13uxx requires each buffer has to be 64-byte alignment
#if CFG_TUSB_MCU == MCU_LPC11UXX || CFG_TUSB_MCU == MCU_LPC13UXX
- #define ATTR_USB_MIN_ALIGNMENT ATTR_ALIGNED(64)
+ #define CFG_TUSB_MEM_ALIGN ATTR_ALIGNED(64)
#elif defined NRF52840_XXAA
- #define ATTR_USB_MIN_ALIGNMENT ATTR_ALIGNED(4)
+ #define CFG_TUSB_MEM_ALIGN ATTR_ALIGNED(4)
#else
- #define ATTR_USB_MIN_ALIGNMENT
+ #define CFG_TUSB_MEM_ALIGN
#endif