Suppress warnings about deprecated __ldrex/strex

Suppress warnings about ARMCC warnings about the __ldrex and __strex
intrinsics to match CMSIS 5.
pull/2178/head
Russ Butler 2016-07-15 11:10:38 -05:00
parent d0d023ab58
commit 59e2f9621c
3 changed files with 15 additions and 0 deletions

View File

@ -60,6 +60,11 @@
#undef __USE_EXCLUSIVE_ACCESS
#endif
/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */
#ifdef __USE_EXCLUSIVE_ACCESS
#pragma diag_suppress 3731
#endif
#elif defined (__GNUC__) /* GNU Compiler */
#undef __USE_EXCLUSIVE_ACCESS

View File

@ -46,6 +46,11 @@
#undef __USE_EXCLUSIVE_ACCESS
#endif
/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */
#ifdef __USE_EXCLUSIVE_ACCESS
#pragma diag_suppress 3731
#endif
#elif defined (__GNUC__) /* GNU Compiler */
#undef __USE_EXCLUSIVE_ACCESS

View File

@ -47,6 +47,11 @@
#undef __USE_EXCLUSIVE_ACCESS
#endif
/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */
#ifdef __USE_EXCLUSIVE_ACCESS
#pragma diag_suppress 3731
#endif
#ifndef __CMSIS_GENERIC
#define __DMB() do {\
__schedule_barrier();\