mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-13 16:27:43 -04:00
RP2040: Fix use of deprecated volatile semantics for C++20 (#1318)
This commit is contained in:
parent
44ae6cf61a
commit
d486264bdf
1 changed files with 3 additions and 2 deletions
|
@ -227,7 +227,7 @@ static inline void vPortRecursiveLock( BaseType_t xCoreID,
|
|||
if( ucOwnedByCore[ xCoreID ][ ulLockNum ] )
|
||||
{
|
||||
configASSERT( ucRecursionCountByLock[ ulLockNum ] != 255u );
|
||||
ucRecursionCountByLock[ ulLockNum ]++;
|
||||
ucRecursionCountByLock[ ulLockNum ] = ucRecursionCountByLock[ ulLockNum ] + 1;
|
||||
return;
|
||||
}
|
||||
spin_lock_unsafe_blocking(pxSpinLock);
|
||||
|
@ -241,7 +241,8 @@ static inline void vPortRecursiveLock( BaseType_t xCoreID,
|
|||
configASSERT( ( ucOwnedByCore[ xCoreID ] [ulLockNum ] ) != 0 );
|
||||
configASSERT( ucRecursionCountByLock[ ulLockNum ] != 0 );
|
||||
|
||||
if( !--ucRecursionCountByLock[ ulLockNum ] )
|
||||
ucRecursionCountByLock[ ulLockNum ] = ucRecursionCountByLock[ ulLockNum ] - 1;
|
||||
if ( ucRecursionCountByLock[ ulLockNum ] == 0U )
|
||||
{
|
||||
ucOwnedByCore[ xCoreID ] [ ulLockNum ] = 0;
|
||||
spin_unlock_unsafe(pxSpinLock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue