mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-16 05:42:56 +00:00
add volatile to EPx_REGS for -Wcast-qual
since gcc does difference between volatile struct and member when casting pointer
This commit is contained in:
parent
31cd366935
commit
099d3b377f
@ -140,7 +140,7 @@ typedef struct
|
||||
__IOM uint32_t USB_RXC2_REG; /*!< (@ 0x000000DC) Receive Command Register 2 */
|
||||
__IOM uint32_t USB_RXC3_REG; /*!< (@ 0x000000FC) Receive Command Register 3 */
|
||||
};
|
||||
} EPx_REGS;
|
||||
} volatile EPx_REGS;
|
||||
|
||||
#define EP_REGS(first_ep_reg) (EPx_REGS*)(&USB->first_ep_reg)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user