This commit is contained in:
Eggert Jung
2025-05-13 16:24:44 +02:00
parent b0f129141a
commit 2421136335
3 changed files with 12 additions and 5 deletions

View File

@@ -25,7 +25,8 @@ void activeWaitDelay(uint64_t cycles) {
uint64_t counter = 0; // Use volatile to prevent optimization
for (uint64_t i = 0; i < cycles; ++i) {
counter++; // Simple operation to consume cycles
asm("nop");
//asm("nop");
Core::pause();
}
}
@@ -39,7 +40,7 @@ void Application::action() { // NOLINT
}
kout << endl << flush;
activeWaitDelay(1000000000);
activeWaitDelay(10000000);
if(cnt >= sizeof(text)-1)
cnt=0;