#include "hw_platform.h"\r
#include "riscv_plic.h"\r
\r
+/* See https://www.freertos.org/Using-FreeRTOS-on-RISC-V.html */\r
+#define configMTIME_BASE_ADDRESS ( ( PRCI_BASE ) + 0xBFF8UL )\r
+#define configMTIMECMP_BASE_ADDRESS ( ( PRCI_BASE ) + 0x4000UL )\r
+\r
+\r
/*-----------------------------------------------------------\r
* Application specific definitions.\r
*\r
*\r
* See http://www.freertos.org/a00110.html.\r
*----------------------------------------------------------*/\r
-#define configCLINT_BASE_ADDRESS PRCI_BASE\r
+\r
#define configUSE_PREEMPTION 1\r
#define configUSE_IDLE_HOOK 1\r
#define configUSE_TICK_HOOK 1\r