Skip to content

Commit

Permalink
Fix compatibility with CMSIS 6.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
will-v-pi committed May 22, 2024
1 parent f9c5f6a commit 46c2071
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rp2_common/hardware_sync/include/hardware/sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ typedef volatile uint32_t spin_lock_t;
* The SEV (send event) instruction sends an event to both cores.
*/
#if !__has_builtin(__sev)
#if !__has_builtin(__sev) && !defined(__sev)
__force_inline static void __sev(void) {
pico_default_asm_volatile ("sev");
}
Expand All @@ -126,7 +126,7 @@ __force_inline static void __sev(void) {
* The WFE (wait for event) instruction waits until one of a number of
* events occurs, including events signalled by the SEV instruction on either core.
*/
#if !__has_builtin(__wfe)
#if !__has_builtin(__wfe) && !defined(__wfe)
__force_inline static void __wfe(void) {
pico_default_asm_volatile ("wfe");
}
Expand All @@ -137,7 +137,7 @@ __force_inline static void __wfe(void) {
*
* The WFI (wait for interrupt) instruction waits for a interrupt to wake up the core.
*/
#if !__has_builtin(__wfi)
#if !__has_builtin(__wfi) && !defined(__wfi)
__force_inline static void __wfi(void) {
pico_default_asm_volatile("wfi");
}
Expand Down

0 comments on commit 46c2071

Please sign in to comment.