]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/GCC/RISC-V-RV32/portmacro.h
RISC-V tasks now context switching to each other using taskYIELD() - not fully tested...
[freertos] / FreeRTOS / Source / portable / GCC / RISC-V-RV32 / portmacro.h
index 7132bf4bab32b48271a23ad2336946f92abb2510..a256d5b0cfdc1cb76c62a1a9732935f6b7a218fb 100644 (file)
@@ -70,7 +70,7 @@ not need to be guarded with a critical section. */
 \r
 \r
 /* Scheduler utilities. */\r
-#define portYIELD() {  volatile uint32_t * const ulSoftInterrupt = ( uint32_t * ) 0x2000000;   *ulSoftInterrupt = 1UL; }\r
+#define portYIELD() {  volatile uint32_t * const ulSoftInterrupt = ( uint32_t * ) configCTRL_BASE;     *ulSoftInterrupt = 1UL; }\r
 #define portEND_SWITCHING_ISR( xSwitchRequired ) if( xSwitchRequired ) vPortYield()\r
 #define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x )\r
 /*-----------------------------------------------------------*/\r