Merge pull request #2597 from neilt6/neilt6-critical-patch

[HAL] Fixed "intrinsic is deprecated" warnings
pull/2625/merge
Sam Grove 2016-09-10 11:35:51 -05:00 committed by GitHub
commit fe8bd7df2e
1 changed files with 5 additions and 0 deletions

View File

@ -86,6 +86,11 @@ void core_util_critical_section_exit(void)
#if EXCLUSIVE_ACCESS
/* Supress __ldrex and __strex deprecated warnings - "#3731-D: intrinsic is deprecated" */
#if defined (__CC_ARM)
#pragma diag_suppress 3731
#endif
bool core_util_atomic_cas_u8(uint8_t *ptr, uint8_t *expectedCurrentValue, uint8_t desiredValue)
{
uint8_t currentValue = __LDREXB((volatile uint8_t*)ptr);