From 468544ce1e91cb87d688529142602b5d1da50cc8 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 bb722c6f..c0163067 100644 --- a/nyx/nyx_gui/frontend/gui.c +++ b/nyx/nyx_gui/frontend/gui.c @@ -2492,7 +2492,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. @@ -2500,6 +2500,7 @@ void nyx_load_and_run() lv_task_handler(); minerva_change_freq(FREQ_800); // Takes 80 us. + usleep(125); // Min 20us. } } }