From a370ef69f644ddf21a5a9f55c1147bae4107d70b Mon Sep 17 00:00:00 2001 From: fef Date: Thu, 12 Aug 2021 16:31:59 +0200 Subject: [PATCH] config: lower default sched freq to 200 Hz 1 kHz was way too much (the CPU could barely get anything done in a time window of just 1 ms) and the task can be put to sleep due to system calls anyway, so this should be fine. --- options.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.cmake b/options.cmake index 90152ff..d9b72f2 100644 --- a/options.cmake +++ b/options.cmake @@ -16,7 +16,7 @@ set(CONFIG_IOMEM_SIZE 8192 CACHE STRING "I/O memory size in bytes") set(CONFIG_SCHED_MAXTASK 8 CACHE STRING "Maximum number of running tasks") -set(CONFIG_SCHED_FREQ 1000 CACHE STRING "Task switch frequency in Hz") +set(CONFIG_SCHED_FREQ 200 CACHE STRING "Task switch frequency in Hz") set(CONFIG_SERIAL_BAUD 115200 CACHE STRING "Default serial baud rate") set_property(CACHE CONFIG_SERIAL_BAUD PROPERTY STRINGS