diff --git a/targets/TARGET_Maxim/TARGET_MAX32620C/device/mxc_device.h b/targets/TARGET_Maxim/TARGET_MAX32620C/device/mxc_device.h index 81a4be46f7..3b36bd9ff4 100644 --- a/targets/TARGET_Maxim/TARGET_MAX32620C/device/mxc_device.h +++ b/targets/TARGET_Maxim/TARGET_MAX32620C/device/mxc_device.h @@ -46,7 +46,9 @@ // Create a string definition for the TARGET #define STRING_ARG(arg) #arg #define STRING_NAME(name) STRING_ARG(name) +#if MBED_VERSION && MBED_VERSION < 51200 #define TARGET_NAME STRING_NAME(TARGET) +#endif // Define which revisions of the IP we are using #ifndef TARGET_REV