mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #2597 from neilt6/neilt6-critical-patch
[HAL] Fixed "intrinsic is deprecated" warningspull/2625/merge
commit
fe8bd7df2e
|
@ -86,6 +86,11 @@ void core_util_critical_section_exit(void)
|
||||||
|
|
||||||
#if EXCLUSIVE_ACCESS
|
#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)
|
bool core_util_atomic_cas_u8(uint8_t *ptr, uint8_t *expectedCurrentValue, uint8_t desiredValue)
|
||||||
{
|
{
|
||||||
uint8_t currentValue = __LDREXB((volatile uint8_t*)ptr);
|
uint8_t currentValue = __LDREXB((volatile uint8_t*)ptr);
|
||||||
|
|
Loading…
Reference in New Issue