summaryrefslogtreecommitdiff
path: root/src/device/usbd_control.c
diff options
context:
space:
mode:
authorWini-Buh <[email protected]>2021-06-22 23:49:24 +0200
committerWini-Buh <[email protected]>2021-06-22 23:49:24 +0200
commit51c6444e1d8be85d5f4c8b4ebf7e48db7f589bc2 (patch)
tree848f493bcec479ab80497c5589b2a1008c87a7d3 /src/device/usbd_control.c
parentc5f6b57755052284e2fec8aa79b93272e757b297 (diff)
final clean up
Diffstat (limited to 'src/device/usbd_control.c')
-rw-r--r--src/device/usbd_control.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/device/usbd_control.c b/src/device/usbd_control.c
index b3bab2e32..5483406e5 100644
--- a/src/device/usbd_control.c
+++ b/src/device/usbd_control.c
@@ -55,17 +55,9 @@ typedef struct
static usbd_control_xfer_t _ctrl_xfer;
-#if defined(TU_HAS_NO_ATTR_ALIGNED)
-// Helper union to overcome the lack of the alignment attribute/pragma
-static union {
- uint16_t : (sizeof(uint16_t) * 8); // Alignment of at least the size of the used type
- uint8_t _usbd_ctrl_buf[CFG_TUD_ENDPOINT0_SIZE];
-} Align_usbd_ctrl_buf_;
-static uint8_t *_usbd_ctrl_buf = (uint8_t*)&Align_usbd_ctrl_buf_;
-#else
CFG_TUSB_MEM_SECTION CFG_TUSB_MEM_ALIGN
static uint8_t _usbd_ctrl_buf[CFG_TUD_ENDPOINT0_SIZE];
-#endif
+
//--------------------------------------------------------------------+
// Application API