mirror of
https://github.com/espressif/openthread.git
synced 2026-08-08 19:57:46 +00:00
[nrf528xx] change casting type to remove SES warning (#4229)
This commit is contained in:
committed by
Jonathan Hui
parent
350b83acb0
commit
00fa340747
@@ -148,9 +148,9 @@ static void setPendingEvent(RadioPendingEvents aEvent)
|
||||
|
||||
do
|
||||
{
|
||||
pendingEvents = __LDREXW((unsigned long volatile *)&sPendingEvents);
|
||||
pendingEvents = __LDREXW((uint32_t *)&sPendingEvents);
|
||||
pendingEvents |= bitToSet;
|
||||
} while (__STREXW(pendingEvents, (unsigned long volatile *)&sPendingEvents));
|
||||
} while (__STREXW(pendingEvents, (uint32_t *)&sPendingEvents));
|
||||
|
||||
otSysEventSignalPending();
|
||||
}
|
||||
@@ -162,9 +162,9 @@ static void resetPendingEvent(RadioPendingEvents aEvent)
|
||||
|
||||
do
|
||||
{
|
||||
pendingEvents = __LDREXW((unsigned long volatile *)&sPendingEvents);
|
||||
pendingEvents = __LDREXW((uint32_t *)&sPendingEvents);
|
||||
pendingEvents &= bitsToRemain;
|
||||
} while (__STREXW(pendingEvents, (unsigned long volatile *)&sPendingEvents));
|
||||
} while (__STREXW(pendingEvents, (uint32_t *)&sPendingEvents));
|
||||
}
|
||||
|
||||
static inline void clearPendingEvents(void)
|
||||
@@ -177,9 +177,9 @@ static inline void clearPendingEvents(void)
|
||||
|
||||
do
|
||||
{
|
||||
pendingEvents = __LDREXW((unsigned long volatile *)&sPendingEvents);
|
||||
pendingEvents = __LDREXW((uint32_t *)&sPendingEvents);
|
||||
pendingEvents &= bitsToRemain;
|
||||
} while (__STREXW(pendingEvents, (unsigned long volatile *)&sPendingEvents));
|
||||
} while (__STREXW(pendingEvents, (uint32_t *)&sPendingEvents));
|
||||
}
|
||||
|
||||
#if !OPENTHREAD_CONFIG_ENABLE_PLATFORM_EUI64_CUSTOM_SOURCE
|
||||
|
||||
Reference in New Issue
Block a user