summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-05-06 17:28:48 +0700
committerhathach <[email protected]>2024-05-06 17:28:48 +0700
commita9f1c62dffc2cb0229767959173f78eec9931db0 (patch)
treedec990bfec6c627526793e7557ea8c67610367a9 /src
parent497785393de5500d99ff80110040c04039bd072f (diff)
temp fix for mm32 redundant-decls of SystemCoreClock
Diffstat (limited to 'src')
-rw-r--r--src/portable/mindmotion/mm32/dcd_mm32f327x_otg.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/portable/mindmotion/mm32/dcd_mm32f327x_otg.c b/src/portable/mindmotion/mm32/dcd_mm32f327x_otg.c
index c3d0c7297..d5c0daaeb 100644
--- a/src/portable/mindmotion/mm32/dcd_mm32f327x_otg.c
+++ b/src/portable/mindmotion/mm32/dcd_mm32f327x_otg.c
@@ -283,7 +283,18 @@ void dcd_set_address(uint8_t rhport, uint8_t dev_addr)
/* Response with status first before changing device address */
dcd_edpt_xfer(rhport, tu_edpt_addr(0, TUSB_DIR_IN), NULL, 0);
}
+
+#ifdef __GNUC__ // caused by extra declaration of SystemCoreClock in freeRTOSConfig.h
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wredundant-decls"
+#endif
+
extern u32 SystemCoreClock;
+
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
+
void dcd_remote_wakeup(uint8_t rhport)
{
(void) rhport;