From 67af775ec9d25116881e3448d1a27b57795b461d Mon Sep 17 00:00:00 2001 From: Rene Stange Date: Mon, 14 Mar 2022 22:55:41 +0100 Subject: [PATCH] Add CPU full speed support Normally the CPU runs at a reduced speed in bare metal applications. With this update and the setting "fast=true" in the file cmdline.txt, it runs at the full speed. --- src/kernel.cpp | 2 ++ src/kernel.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/kernel.cpp b/src/kernel.cpp index dde24f0..1c9ed77 100644 --- a/src/kernel.cpp +++ b/src/kernel.cpp @@ -89,6 +89,8 @@ CStdlibApp::TShutdownMode CKernel::Run (void) { mScreen.Update (); } + + m_CPUThrottle.Update (); } return ShutdownHalt; diff --git a/src/kernel.h b/src/kernel.h index a2b5cc3..de9a5f0 100644 --- a/src/kernel.h +++ b/src/kernel.h @@ -21,6 +21,7 @@ #define _kernel_h #include "circle_stdlib_app.h" +#include #include #include #include "config.h" @@ -49,6 +50,7 @@ private: private: // do not change this order CConfig m_Config; + CCPUThrottle m_CPUThrottle; CGPIOManager m_GPIOManager; CI2CMaster m_I2CMaster; CMiniDexed *m_pDexed;