X-Git-Url: https://git.sur5r.net/?p=freertos;a=blobdiff_plain;f=FreeRTOS%2FDemo%2FRISC-V_Renode_Emulator_SoftConsole%2FFreeRTOSConfig.h;fp=FreeRTOS%2FDemo%2FRISC-V_Renode_Emulator_SoftConsole%2FFreeRTOSConfig.h;h=e426d946be6188180f9098ee7768bb4ae4edc994;hp=79f1a00a1a814ff37e9aa930f7e2c3fa8b87b7d4;hb=38a770622c6843e732738fe34ccd3772b4ac160c;hpb=53b6a1d8973d8e067ef9561154aad789b91c936a diff --git a/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/FreeRTOSConfig.h b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/FreeRTOSConfig.h index 79f1a00a1..e426d946b 100644 --- a/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/FreeRTOSConfig.h +++ b/FreeRTOS/Demo/RISC-V_Renode_Emulator_SoftConsole/FreeRTOSConfig.h @@ -74,6 +74,11 @@ #include "hw_platform.h" #include "riscv_plic.h" +/* See https://www.freertos.org/Using-FreeRTOS-on-RISC-V.html */ +#define configMTIME_BASE_ADDRESS ( ( PRCI_BASE ) + 0xBFF8UL ) +#define configMTIMECMP_BASE_ADDRESS ( ( PRCI_BASE ) + 0x4000UL ) + + /*----------------------------------------------------------- * Application specific definitions. * @@ -85,7 +90,7 @@ * * See http://www.freertos.org/a00110.html. *----------------------------------------------------------*/ -#define configCLINT_BASE_ADDRESS PRCI_BASE + #define configUSE_PREEMPTION 1 #define configUSE_IDLE_HOOK 1 #define configUSE_TICK_HOOK 1