Skip to content

Commit d95451d

Browse files
authored
Define portNOP in RP2040 port (#1003)
1 parent 30f6061 commit d95451d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

portable/ThirdParty/GCC/RP2040/include/portmacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ static inline void vPortRecursiveLock( uint32_t ulLockNum,
278278
#define portTASK_FUNCTION_PROTO( vFunction, pvParameters ) void vFunction( void * pvParameters )
279279
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void * pvParameters )
280280

281-
#define portNOP()
281+
#define portNOP() __asm volatile ( "nop" )
282282

283283
#define portMEMORY_BARRIER() __asm volatile ( "" ::: "memory" )
284284

0 commit comments

Comments
 (0)