summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWini-Buh <[email protected]>2021-06-29 00:43:41 +0200
committerWini-Buh <[email protected]>2021-06-29 00:43:41 +0200
commit36ba9608bd2e70513d5ede87c3cefe38d7edf603 (patch)
tree11755ec124f8b45e700ac09174c17964f1887d1a
parentcb0f1d98db3c4bcfdcba231a78b1c18805483ad8 (diff)
Merge from current master. Fixed a compilation error with the GNUC toolchain
-rw-r--r--src/portable/renesas/usba/dcd_usba.c13
-rw-r--r--src/tusb_option.h5
2 files changed, 8 insertions, 10 deletions
diff --git a/src/portable/renesas/usba/dcd_usba.c b/src/portable/renesas/usba/dcd_usba.c
index bb4a08e2b..6f55a7226 100644
--- a/src/portable/renesas/usba/dcd_usba.c
+++ b/src/portable/renesas/usba/dcd_usba.c
@@ -2,6 +2,7 @@
* The MIT License (MIT)
*
* Copyright (c) 2020 Koji Kitayama
+ * Portions copyrighted (c) 2021 Roland Winistoerfer
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -26,13 +27,9 @@
#include "tusb_option.h"
-<<<<<<< HEAD
-#if TUSB_OPT_DEVICE_ENABLED && (( CFG_TUSB_MCU == OPT_MCU_RX63X ) || ( CFG_TUSB_MCU == OPT_MCU_RX72N ))
-
-=======
#if TUSB_OPT_DEVICE_ENABLED && ( CFG_TUSB_MCU == OPT_MCU_RX63X || \
- CFG_TUSB_MCU == OPT_MCU_RX65X)
->>>>>>> origin/master
+ CFG_TUSB_MCU == OPT_MCU_RX65X || \
+ CFG_TUSB_MCU == OPT_MCU_RX72N )
#include "device/dcd.h"
#include "iodefine.h"
@@ -524,7 +521,11 @@ 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
.bmRequestType = { 0 }, /* Note: CCRX needs the braces over this struct member */
+#endif
.bRequest = 5,
.wValue = addr,
.wIndex = 0,
diff --git a/src/tusb_option.h b/src/tusb_option.h
index 2a68dcbc1..e9a7ac54a 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -113,11 +113,8 @@
// Renesas RX
#define OPT_MCU_RX63X 1400 ///< Renesas RX63N/631
-<<<<<<< HEAD
-#define OPT_MCU_RX72N 1401 ///< Renesas RX72N
-=======
#define OPT_MCU_RX65X 1401 ///< Renesas RX65N/RX651
->>>>>>> origin/master
+#define OPT_MCU_RX72N 1402 ///< Renesas RX72N
// Mind Motion
#define OPT_MCU_MM32F327X 1500 ///< Mind Motion MM32F327