Skip to content

Commit 2514479

Browse files
authored
Merge pull request #13743 from idea--list/master
Define SD and STORAGE for the MAX32630FTHR and prevent warnings during compilation on Mbed 5.12 and above
2 parents 2311398 + 0db0f0d commit 2514479

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

targets/TARGET_Maxim/TARGET_MAX32620C/device/mxc_device.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
// Create a string definition for the TARGET
4747
#define STRING_ARG(arg) #arg
4848
#define STRING_NAME(name) STRING_ARG(name)
49+
#if MBED_VERSION && MBED_VERSION < 51200
4950
#define TARGET_NAME STRING_NAME(TARGET)
51+
#endif
5052

5153
// Define which revisions of the IP we are using
5254
#ifndef TARGET_REV

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

targets/TARGET_Maxim/TARGET_MAX32630/device/mxc_device.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
// Create a string definition for the TARGET
4747
#define STRING_ARG(arg) #arg
4848
#define STRING_NAME(name) STRING_ARG(name)
49+
#if MBED_VERSION && MBED_VERSION < 51200
4950
#define TARGET_NAME STRING_NAME(TARGET)
51+
#endif
5052

5153
// Define which revisions of the IP we are using
5254
#ifndef TARGET_REV

targets/targets.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4568,6 +4568,9 @@
45684568
"IAR",
45694569
"ARM"
45704570
],
4571+
"features_add": [
4572+
"STORAGE"
4573+
],
45714574
"device_has": [
45724575
"ANALOGIN",
45734576
"I2C",
@@ -4577,6 +4580,7 @@
45774580
"PORTINOUT",
45784581
"PORTOUT",
45794582
"PWMOUT",
4583+
"SD",
45804584
"SERIAL",
45814585
"SERIAL_FC",
45824586
"SPI",

0 commit comments

Comments
 (0)