Skip to content

Commit fee7a1c

Browse files
authored
Prevent warnings during compilations for MAX32625
In Mbed OS 5.12.0 mbed_toolchain.py has been introduced, that automatically defines the macro TARGET_NAME (on line 241). This leads to a high number of generating the following warning: 'TARGET_NAME' macro redefined while compiling code for MAX32625 on Mbed OS 5.12 and above. This patch fixes it, while it keeps the definition in place for lower versions that lack mbed_toolchain.py
1 parent 48c71b3 commit fee7a1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

targets/TARGET_Maxim/TARGET_MAX32625/device/mxc_device.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
// Create a string definition for the TARGET
4444
#define STRING_ARG(arg) #arg
4545
#define STRING_NAME(name) STRING_ARG(name)
46+
#if MBED_VERSION && MBED_VERSION < 51200
4647
#define TARGET_NAME STRING_NAME(TARGET)
48+
#endif
4749

4850
// Define which revisions of the IP we are using
4951
#ifndef TARGET_REV

0 commit comments

Comments
 (0)