X-Git-Url: https://git.sur5r.net/?p=freertos;a=blobdiff_plain;f=FreeRTOS%2FDemo%2FRISC-V-Qemu-sifive_e-Eclipse-GCC%2FFreeRTOSConfig.h;h=33d8e4cbe26b0fe5ebbea36c05c09b56fc3664f6;hp=3132565c1b56c12895780f42ea6134faa829988a;hb=38a770622c6843e732738fe34ccd3772b4ac160c;hpb=53b6a1d8973d8e067ef9561154aad789b91c936a diff --git a/FreeRTOS/Demo/RISC-V-Qemu-sifive_e-Eclipse-GCC/FreeRTOSConfig.h b/FreeRTOS/Demo/RISC-V-Qemu-sifive_e-Eclipse-GCC/FreeRTOSConfig.h index 3132565c1..33d8e4cbe 100644 --- a/FreeRTOS/Demo/RISC-V-Qemu-sifive_e-Eclipse-GCC/FreeRTOSConfig.h +++ b/FreeRTOS/Demo/RISC-V-Qemu-sifive_e-Eclipse-GCC/FreeRTOSConfig.h @@ -95,11 +95,14 @@ * See http://www.freertos.org/a00110.html. *----------------------------------------------------------*/ -#define configCLINT_BASE_ADDRESS CLINT_CTRL_ADDR +/* See https://www.freertos.org/Using-FreeRTOS-on-RISC-V.html */ +#define configMTIME_BASE_ADDRESS ( ( CLINT_CTRL_ADDR ) + 0xBFF8UL ) +#define configMTIMECMP_BASE_ADDRESS ( ( CLINT_CTRL_ADDR ) + 0x4000UL ) + #define configUSE_PREEMPTION 1 #define configUSE_IDLE_HOOK 0 #define configUSE_TICK_HOOK 1 -#define configCPU_CLOCK_HZ ( 10000000 ) /*QEMU*/ +#define configCPU_CLOCK_HZ ( 1000000 ) #define configTICK_RATE_HZ ( ( TickType_t ) 1000 ) #define configMAX_PRIORITIES ( 7 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 105 ) @@ -125,7 +128,7 @@ /* Software timer definitions. */ #define configUSE_TIMERS 1 #define configTIMER_TASK_PRIORITY ( configMAX_PRIORITIES - 1 ) -#define configTIMER_QUEUE_LENGTH 4 +#define configTIMER_QUEUE_LENGTH 6 #define configTIMER_TASK_STACK_DEPTH ( 110 ) /* Task priorities. Allow these to be overridden. */