]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/RISC-V-Qemu-sifive_e-Eclipse-GCC/FreeRTOSConfig.h
Update libraries and sundry check-ins ready for the V10.3.0 kernel release.
[freertos] / FreeRTOS / Demo / RISC-V-Qemu-sifive_e-Eclipse-GCC / FreeRTOSConfig.h
index 3132565c1b56c12895780f42ea6134faa829988a..33d8e4cbe26b0fe5ebbea36c05c09b56fc3664f6 100644 (file)
  * See http://www.freertos.org/a00110.html.\r
  *----------------------------------------------------------*/\r
 \r
-#define configCLINT_BASE_ADDRESS               CLINT_CTRL_ADDR\r
+/* See https://www.freertos.org/Using-FreeRTOS-on-RISC-V.html */\r
+#define configMTIME_BASE_ADDRESS       ( ( CLINT_CTRL_ADDR ) + 0xBFF8UL )\r
+#define configMTIMECMP_BASE_ADDRESS ( ( CLINT_CTRL_ADDR ) + 0x4000UL )\r
+\r
 #define configUSE_PREEMPTION                   1\r
 #define configUSE_IDLE_HOOK                            0\r
 #define configUSE_TICK_HOOK                            1\r
-#define configCPU_CLOCK_HZ                             ( 10000000 ) /*QEMU*/\r
+#define configCPU_CLOCK_HZ                             ( 1000000 )\r
 #define configTICK_RATE_HZ                             ( ( TickType_t ) 1000 )\r
 #define configMAX_PRIORITIES                   ( 7 )\r
 #define configMINIMAL_STACK_SIZE               ( ( unsigned short ) 105 )\r
 /* Software timer definitions. */\r
 #define configUSE_TIMERS                               1\r
 #define configTIMER_TASK_PRIORITY              ( configMAX_PRIORITIES - 1 )\r
-#define configTIMER_QUEUE_LENGTH               4\r
+#define configTIMER_QUEUE_LENGTH               6\r
 #define configTIMER_TASK_STACK_DEPTH   ( 110 )\r
 \r
 /* Task priorities.  Allow these to be overridden. */\r