summaryrefslogtreecommitdiff
path: root/tinyusb/device/dcd_lpc43xx.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-03-10 13:13:13 +0700
committerhathach <[email protected]>2014-03-10 13:13:13 +0700
commitad72db5aeacf7d969f5c091c59a2f279eaf1c19c (patch)
tree328b462bcd4443e1eadba638509ebb4076b36b04 /tinyusb/device/dcd_lpc43xx.c
parent1c73d2f923aade6c6640d41c4b9dc3ec8865d3da (diff)
change IAR TUSB_CFG_ATTR_USBRAM to _Pragma("location=\".ahb_sram1\"") instead of @ .ahb_sram1 so that we can place it before the variable for a cleaner code
change pipe xfer API buffer from void* to uint8_t* change FIFO_DEF to have a separated buffer to be compatible with IAR\ refractor IAR data alignment pragma
Diffstat (limited to 'tinyusb/device/dcd_lpc43xx.c')
-rw-r--r--tinyusb/device/dcd_lpc43xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/device/dcd_lpc43xx.c b/tinyusb/device/dcd_lpc43xx.c
index c5d6eb666..05e47fd11 100644
--- a/tinyusb/device/dcd_lpc43xx.c
+++ b/tinyusb/device/dcd_lpc43xx.c
@@ -168,11 +168,11 @@ typedef struct {
}dcd_data_t;
#if (TUSB_CFG_CONTROLLER_0_MODE & TUSB_MODE_DEVICE)
-ATTR_ALIGNED(2048) dcd_data_t dcd_data0 TUSB_CFG_ATTR_USBRAM;
+TUSB_CFG_ATTR_USBRAM ATTR_ALIGNED(2048) dcd_data_t dcd_data0;
#endif
#if (TUSB_CFG_CONTROLLER_1_MODE & TUSB_MODE_DEVICE)
-ATTR_ALIGNED(2048) dcd_data_t dcd_data1 TUSB_CFG_ATTR_USBRAM;
+TUSB_CFG_ATTR_USBRAM ATTR_ALIGNED(2048) dcd_data_t dcd_data1;
#endif
static LPC_USB0_Type * const LPC_USB[2] = { LPC_USB0, ((LPC_USB0_Type*) LPC_USB1_BASE) };