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
pull/13745/head
Martin Kojtal 2020-10-15 15:06:48 +01:00 committed by GitHub
commit 2514479360
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 0 deletions

View File

@ -46,7 +46,9 @@
// Create a string definition for the TARGET // Create a string definition for the TARGET
#define STRING_ARG(arg) #arg #define STRING_ARG(arg) #arg
#define STRING_NAME(name) STRING_ARG(name) #define STRING_NAME(name) STRING_ARG(name)
#if MBED_VERSION && MBED_VERSION < 51200
#define TARGET_NAME STRING_NAME(TARGET) #define TARGET_NAME STRING_NAME(TARGET)
#endif
// Define which revisions of the IP we are using // Define which revisions of the IP we are using
#ifndef TARGET_REV #ifndef TARGET_REV

View File

@ -43,7 +43,9 @@
// Create a string definition for the TARGET // Create a string definition for the TARGET
#define STRING_ARG(arg) #arg #define STRING_ARG(arg) #arg
#define STRING_NAME(name) STRING_ARG(name) #define STRING_NAME(name) STRING_ARG(name)
#if MBED_VERSION && MBED_VERSION < 51200
#define TARGET_NAME STRING_NAME(TARGET) #define TARGET_NAME STRING_NAME(TARGET)
#endif
// Define which revisions of the IP we are using // Define which revisions of the IP we are using
#ifndef TARGET_REV #ifndef TARGET_REV

View File

@ -46,7 +46,9 @@
// Create a string definition for the TARGET // Create a string definition for the TARGET
#define STRING_ARG(arg) #arg #define STRING_ARG(arg) #arg
#define STRING_NAME(name) STRING_ARG(name) #define STRING_NAME(name) STRING_ARG(name)
#if MBED_VERSION && MBED_VERSION < 51200
#define TARGET_NAME STRING_NAME(TARGET) #define TARGET_NAME STRING_NAME(TARGET)
#endif
// Define which revisions of the IP we are using // Define which revisions of the IP we are using
#ifndef TARGET_REV #ifndef TARGET_REV

View File

@ -4568,6 +4568,9 @@
"IAR", "IAR",
"ARM" "ARM"
], ],
"features_add": [
"STORAGE"
],
"device_has": [ "device_has": [
"ANALOGIN", "ANALOGIN",
"I2C", "I2C",
@ -4577,6 +4580,7 @@
"PORTINOUT", "PORTINOUT",
"PORTOUT", "PORTOUT",
"PWMOUT", "PWMOUT",
"SD",
"SERIAL", "SERIAL",
"SERIAL_FC", "SERIAL_FC",
"SPI", "SPI",