Core(A): Changed macro __DEPRECATED to CMSIS_DEPRECATED. (Issue #287)

__DEPRECATED conflicts with a predefined macro in GCC C++ mode.
pull/5628/head
Jonatan Antoni 2017-12-14 09:26:36 +01:00 committed by TomoYamanaka
parent 2f06202a9b
commit 063717d90d
6 changed files with 16 additions and 16 deletions

View File

@ -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))

View File

@ -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))

View File

@ -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

View File

@ -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))

View File

@ -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

View File

@ -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);
}