summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorMichael Bruno <[email protected]>2021-03-16 10:48:42 -0400
committerGitHub <[email protected]>2021-03-16 10:48:42 -0400
commit62d4652f86516e1fdd7fa79a29535cf39b2ab2f1 (patch)
tree6bea7475420c9d8210b8e726952829cd434e9e01 /src/class
parent21f1cd4ec7e2104ac88b26be5c06e81e385cd660 (diff)
Update usbtmc_device.c
Fix buffer alignment in TMC device class
Diffstat (limited to 'src/class')
-rw-r--r--src/class/usbtmc/usbtmc_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/usbtmc/usbtmc_device.c b/src/class/usbtmc/usbtmc_device.c
index 88776d169..6c9b42449 100644
--- a/src/class/usbtmc/usbtmc_device.c
+++ b/src/class/usbtmc/usbtmc_device.c
@@ -131,9 +131,9 @@ typedef struct
uint8_t ep_int_in;
// IN buffer is only used for first packet, not the remainder
// in order to deal with prepending header
- uint8_t ep_bulk_in_buf[USBTMCD_MAX_PACKET_SIZE];
+ CFG_TUSB_MEM_ALIGN uint8_t ep_bulk_in_buf[USBTMCD_MAX_PACKET_SIZE];
// OUT buffer receives one packet at a time
- uint8_t ep_bulk_out_buf[USBTMCD_MAX_PACKET_SIZE];
+ CFG_TUSB_MEM_ALIGN uint8_t ep_bulk_out_buf[USBTMCD_MAX_PACKET_SIZE];
uint32_t transfer_size_remaining; // also used for requested length for bulk IN.
uint32_t transfer_size_sent; // To keep track of data bytes that have been queued in FIFO (not header bytes)