summaryrefslogtreecommitdiff
path: root/src/device/usbd_control.c
diff options
context:
space:
mode:
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