mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
Fix misleading error messages in spin_lock.h (#2326)
(looks like this was a copy-paste mistake)
This commit is contained in:
parent
c7ff325fb3
commit
26ab4be834
1 changed files with 2 additions and 2 deletions
|
|
@ -149,7 +149,7 @@ typedef SW_SPIN_LOCK_TYPE spin_lock_t;
|
|||
__mem_fence_acquire(); \
|
||||
})
|
||||
#else
|
||||
#error no SW_SPIN_TRY_LOCK available for PICO_USE_SW_SPIN_LOCK on this platform
|
||||
#error no SW_SPIN_LOCK_LOCK available for PICO_USE_SW_SPIN_LOCK on this platform
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
@ -210,7 +210,7 @@ typedef SW_SPIN_LOCK_TYPE spin_lock_t;
|
|||
*(lock) = 0; /* write to spinlock register (release lock) */ \
|
||||
})
|
||||
#else
|
||||
#error no SW_SPIN_TRY_LOCK available for PICO_USE_SW_SPIN_LOCK on this platform
|
||||
#error no SW_SPIN_LOCK_UNLOCK available for PICO_USE_SW_SPIN_LOCK on this platform
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue