Make toolchain dependency more consistent

This commit is contained in:
Wini-Buh 2021-06-29 21:45:18 +02:00
parent 36ba9608bd
commit 4c0cce4b1d
1 changed files with 3 additions and 3 deletions

View File

@ -521,10 +521,10 @@ static void process_set_address(uint8_t rhport)
const uint32_t addr = USB0.USBADDR.BIT.USBADDR;
if (!addr) return;
const tusb_control_request_t setup_packet = {
#if defined(__GNUC__)
.bmRequestType = 0,
#else
#if defined(__CCRX__)
.bmRequestType = { 0 }, /* Note: CCRX needs the braces over this struct member */
#else
.bmRequestType = 0,
#endif
.bRequest = 5,
.wValue = addr,