From 330b4631105a233ca2e78186624ae8a310fc40ee Mon Sep 17 00:00:00 2001 From: CTCaer Date: Wed, 17 Dec 2025 06:33:05 +0200 Subject: [PATCH] nyx: add a small stall in lvgl loop EMC CC should not run in less than 20us. --- nyx/nyx_gui/frontend/gui.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nyx/nyx_gui/frontend/gui.c b/nyx/nyx_gui/frontend/gui.c index 85492295..40bd4660 100644 --- a/nyx/nyx_gui/frontend/gui.c +++ b/nyx/nyx_gui/frontend/gui.c @@ -2478,7 +2478,7 @@ void nyx_load_and_run() } else { - // Alternate DRAM frequencies. Saves 280 mW. + // Alternate DRAM frequencies. Total stall < 1ms. Saves 300+ mW. while (true) { minerva_change_freq(FREQ_1600); // Takes 295 us. @@ -2486,6 +2486,7 @@ void nyx_load_and_run() lv_task_handler(); minerva_change_freq(FREQ_800); // Takes 80 us. + usleep(125); // Min 20us. } } }