Commit 46c2071 1 parent f9c5f6a commit 46c2071 Copy full SHA for 46c2071
File tree 1 file changed +3
-3
lines changed
src/rp2_common/hardware_sync/include/hardware
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ typedef volatile uint32_t spin_lock_t;
114
114
115
115
* The SEV (send event) instruction sends an event to both cores.
116
116
*/
117
- #if !__has_builtin(__sev)
117
+ #if !__has_builtin(__sev) && !defined(__sev)
118
118
__force_inline static void __sev (void ) {
119
119
pico_default_asm_volatile (" sev" );
120
120
}
@@ -126,7 +126,7 @@ __force_inline static void __sev(void) {
126
126
* The WFE (wait for event) instruction waits until one of a number of
127
127
* events occurs, including events signalled by the SEV instruction on either core.
128
128
*/
129
- #if !__has_builtin(__wfe)
129
+ #if !__has_builtin(__wfe) && !defined(__wfe)
130
130
__force_inline static void __wfe (void ) {
131
131
pico_default_asm_volatile (" wfe" );
132
132
}
@@ -137,7 +137,7 @@ __force_inline static void __wfe(void) {
137
137
*
138
138
* The WFI (wait for interrupt) instruction waits for a interrupt to wake up the core.
139
139
*/
140
- #if !__has_builtin(__wfi)
140
+ #if !__has_builtin(__wfi) && !defined(__wfi)
141
141
__force_inline static void __wfi (void ) {
142
142
pico_default_asm_volatile (" wfi" );
143
143
}
You can’t perform that action at this time.
0 commit comments