]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/GCC/RISC-V-RV32/portmacro.h
RISC-V:
[freertos] / FreeRTOS / Source / portable / GCC / RISC-V-RV32 / portmacro.h
index 5d18ba34a0728cb17c2670003476d5c8cbe1c7d6..7132bf4bab32b48271a23ad2336946f92abb2510 100644 (file)
@@ -70,8 +70,7 @@ not need to be guarded with a critical section. */
 \r
 \r
 /* Scheduler utilities. */\r
-extern void vPortYield( void );\r
-#define portYIELD()                                    vPortYield()\r
+#define portYIELD() {  volatile uint32_t * const ulSoftInterrupt = ( uint32_t * ) 0x2000000;   *ulSoftInterrupt = 1UL; }\r
 #define portEND_SWITCHING_ISR( xSwitchRequired ) if( xSwitchRequired ) vPortYield()\r
 #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x )\r
 /*-----------------------------------------------------------*/\r