mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
RP2040: Fix compiler warning and comment (#509)
Co-authored-by: graham sanderson <graham.sanderson@raspeberryi.com>
This commit is contained in:
parent
b3918c7f38
commit
13f034eb74
4
portable/ThirdParty/GCC/RP2040/port.c
vendored
4
portable/ThirdParty/GCC/RP2040/port.c
vendored
|
@ -120,8 +120,10 @@ static void prvTaskExitError( void );
|
||||||
#define pEventGroup (&xStaticEventGroup)
|
#define pEventGroup (&xStaticEventGroup)
|
||||||
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
||||||
static EventGroupHandle_t xEventGroup;
|
static EventGroupHandle_t xEventGroup;
|
||||||
|
#if (portRUNNING_ON_BOTH_CORES == 0)
|
||||||
static EventBits_t uxCrossCoreEventBits;
|
static EventBits_t uxCrossCoreEventBits;
|
||||||
static spin_lock_t * pxCrossCoreSpinLock;
|
static spin_lock_t * pxCrossCoreSpinLock;
|
||||||
|
#endif
|
||||||
static spin_lock_t * pxYieldSpinLock[configNUM_CORES];
|
static spin_lock_t * pxYieldSpinLock[configNUM_CORES];
|
||||||
static uint32_t ulYieldSpinLockSaveValue[configNUM_CORES];
|
static uint32_t ulYieldSpinLockSaveValue[configNUM_CORES];
|
||||||
#endif /* configSUPPORT_PICO_SYNC_INTEROP */
|
#endif /* configSUPPORT_PICO_SYNC_INTEROP */
|
||||||
|
@ -357,7 +359,7 @@ void vPortYield( void )
|
||||||
{
|
{
|
||||||
#if ( configSUPPORT_PICO_SYNC_INTEROP == 1 )
|
#if ( configSUPPORT_PICO_SYNC_INTEROP == 1 )
|
||||||
/* We are not in an ISR, and pxYieldSpinLock is always dealt with and
|
/* We are not in an ISR, and pxYieldSpinLock is always dealt with and
|
||||||
* cleared interrupts are re-enabled, so should be NULL */
|
* cleared when interrupts are re-enabled, so should be NULL */
|
||||||
configASSERT( pxYieldSpinLock[portGET_CORE_ID()] == NULL );
|
configASSERT( pxYieldSpinLock[portGET_CORE_ID()] == NULL );
|
||||||
#endif /* configSUPPORT_PICO_SYNC_INTEROP */
|
#endif /* configSUPPORT_PICO_SYNC_INTEROP */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue