Forráskód Böngészése

Core(A): Changed macro __DEPRECATED to CMSIS_DEPRECATED. (Issue #287)
__DEPRECATED conflicts with a predefined macro in GCC C++ mode.

Jonatan Antoni 8 éve
szülő
commit
d43938fac6

+ 2 - 2
CMSIS/Core_A/Include/cmsis_armcc.h

@@ -53,8 +53,8 @@
 #ifndef   __NO_RETURN
   #define __NO_RETURN                            __declspec(noreturn)
 #endif
-#ifndef   __DEPRECATED
- #define  __DEPRECATED                           __attribute__((deprecated))
+#ifndef   CMSIS_DEPRECATED
+  #define CMSIS_DEPRECATED                       __attribute__((deprecated))
 #endif
 #ifndef   __USED
   #define __USED                                 __attribute__((used))

+ 2 - 2
CMSIS/Core_A/Include/cmsis_armclang.h

@@ -50,8 +50,8 @@
 #ifndef   __NO_RETURN
   #define __NO_RETURN                            __attribute__((__noreturn__))
 #endif
-#ifndef   __DEPRECATED
- #define  __DEPRECATED                           __attribute__((deprecated))
+#ifndef   CMSIS_DEPRECATED
+  #define CMSIS_DEPRECATED                       __attribute__((deprecated))
 #endif
 #ifndef   __USED
   #define __USED                                 __attribute__((used))

+ 7 - 7
CMSIS/Core_A/Include/cmsis_compiler.h

@@ -79,8 +79,8 @@
   #ifndef   __NO_RETURN
     #define __NO_RETURN               __attribute__((noreturn))
   #endif
-  #ifndef   __DEPRECATED
-   #define  __DEPRECATED              __attribute__((deprecated))
+  #ifndef   CMSIS_DEPRECATED
+    #define CMSIS_DEPRECATED          __attribute__((deprecated))
   #endif
   #ifndef   __USED
     #define __USED                    __attribute__((used))
@@ -125,8 +125,8 @@
   #ifndef   __NO_RETURN
     #define __NO_RETURN               __attribute__((noreturn))
   #endif
-  #ifndef   __DEPRECATED
-   #define  __DEPRECATED              __attribute__((deprecated))
+  #ifndef   CMSIS_DEPRECATED
+    #define CMSIS_DEPRECATED          __attribute__((deprecated))
   #endif
   #ifndef   __USED
     #define __USED                    __attribute__((used))
@@ -172,9 +172,9 @@
     #warning No compiler specific solution for __USED. __USED is ignored.
     #define __USED
   #endif
-  #ifndef   __DEPRECATED
-    #warning No compiler specific solution for __DEPRECATED. __DEPRECATED is ignored.
-    #define __DEPRECATED
+  #ifndef   CMSIS_DEPRECATED
+    #warning No compiler specific solution for CMSIS_DEPRECATED. CMSIS_DEPRECATED is ignored.
+    #define CMSIS_DEPRECATED
   #endif
   #ifndef   __WEAK
     #define __WEAK                    __weak

+ 2 - 2
CMSIS/Core_A/Include/cmsis_gcc.h

@@ -55,8 +55,8 @@
 #ifndef   __NO_RETURN
   #define __NO_RETURN                            __attribute__((__noreturn__))
 #endif
-#ifndef   __DEPRECATED
- #define  __DEPRECATED                           __attribute__((deprecated))
+#ifndef   CMSIS_DEPRECATED
+ #define  CMSIS_DEPRECATED                       __attribute__((deprecated))
 #endif
 #ifndef   __USED
   #define __USED                                 __attribute__((used))

+ 2 - 2
CMSIS/Core_A/Include/cmsis_iccarm.h

@@ -124,8 +124,8 @@
   #define __STATIC_FORCEINLINE  __FORCEINLINE __STATIC_INLINE
 #endif
 
-#ifndef   __DEPRECATED
- #define  __DEPRECATED          __attribute__((deprecated))
+#ifndef   CMSIS_DEPRECATED
+  #define CMSIS_DEPRECATED      __attribute__((deprecated))
 #endif
 
 #ifndef __UNALIGNED_UINT16_READ

+ 1 - 1
CMSIS/Core_A/Include/core_ca.h

@@ -1010,7 +1010,7 @@ __STATIC_FORCEINLINE void L1C_CleanInvalidateCache(uint32_t op) {
 * \param [in] op 0 - invalidate, 1 - clean, otherwise - invalidate and clean
 * \deprecated Use generic L1C_CleanInvalidateCache instead.
 */
-__DEPRECATED
+CMSIS_DEPRECATED
 __STATIC_FORCEINLINE void __L1C_CleanInvalidateCache(uint32_t op) {
   L1C_CleanInvalidateCache(op);
 }