From 81047776814cd901a71047f79e781b3764b9fb0f Mon Sep 17 00:00:00 2001 From: wuliyong Date: Tue, 12 Sep 2023 23:57:42 +0800 Subject: [PATCH] RISC-V-Qemu-virt_GCC: correct configCPU_CLOCK_HZ define (#1086) * RISC-V-Qemu-virt_GCC: correct configCPU_CLOCK_HZ define fix configCPU_CLOCK_HZ define for correct freeRTOS tick: Qemu simulator runs at 10MHZ, defined by RISCV_ACLINT_DEFAULT_TIMEBASE_FREQ at https://github.com/qemu/qemu/blob/master/include/hw/intc/riscv_aclint.h * Fix CI check Signed-off-by: Gaurav Aggarwal --------- Signed-off-by: Gaurav Aggarwal Co-authored-by: Gaurav Aggarwal --- FreeRTOS/Demo/RISC-V-Qemu-virt_GCC/FreeRTOSConfig.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FreeRTOS/Demo/RISC-V-Qemu-virt_GCC/FreeRTOSConfig.h b/FreeRTOS/Demo/RISC-V-Qemu-virt_GCC/FreeRTOSConfig.h index 5f58a5fcd..e2ba6e198 100644 --- a/FreeRTOS/Demo/RISC-V-Qemu-virt_GCC/FreeRTOSConfig.h +++ b/FreeRTOS/Demo/RISC-V-Qemu-virt_GCC/FreeRTOSConfig.h @@ -1,6 +1,6 @@ /* * FreeRTOS V202212.00 - * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in @@ -48,7 +48,7 @@ #define configUSE_PREEMPTION 1 #define configUSE_IDLE_HOOK 0 #define configUSE_TICK_HOOK 1 -#define configCPU_CLOCK_HZ ( 1000000 ) +#define configCPU_CLOCK_HZ ( 10000000 ) #define configTICK_RATE_HZ ( ( TickType_t ) 1000 ) #define configMAX_PRIORITIES ( 7 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 512 )