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.
pull/47/head
Rene Stange 3 years ago
parent 2b1c7c4562
commit 67af775ec9
  1. 2
      src/kernel.cpp
  2. 2
      src/kernel.h

@ -89,6 +89,8 @@ CStdlibApp::TShutdownMode CKernel::Run (void)
{ {
mScreen.Update (); mScreen.Update ();
} }
m_CPUThrottle.Update ();
} }
return ShutdownHalt; return ShutdownHalt;

@ -21,6 +21,7 @@
#define _kernel_h #define _kernel_h
#include "circle_stdlib_app.h" #include "circle_stdlib_app.h"
#include <circle/cputhrottle.h>
#include <circle/gpiomanager.h> #include <circle/gpiomanager.h>
#include <circle/i2cmaster.h> #include <circle/i2cmaster.h>
#include "config.h" #include "config.h"
@ -49,6 +50,7 @@ private:
private: private:
// do not change this order // do not change this order
CConfig m_Config; CConfig m_Config;
CCPUThrottle m_CPUThrottle;
CGPIOManager m_GPIOManager; CGPIOManager m_GPIOManager;
CI2CMaster m_I2CMaster; CI2CMaster m_I2CMaster;
CMiniDexed *m_pDexed; CMiniDexed *m_pDexed;

Loading…
Cancel
Save