From f6245bf01dd28643b14544a06d1a4d72b0d37c44 Mon Sep 17 00:00:00 2001 From: heck Date: Sun, 22 Sep 2024 20:11:29 +0200 Subject: [PATCH] Feature: Add CPU BOOST (480MHZ) option untested! the thing might blow up and tear a black hole into your desktop --- src/globals.hh | 2 +- src/main_perkons.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/globals.hh b/src/globals.hh index 34723ce..2deb400 100644 --- a/src/globals.hh +++ b/src/globals.hh @@ -13,7 +13,7 @@ namespace Heck { constexpr int PIN_BUTTON_CLEAR = 27; } - + constexpr bool CPU_BOOST480MHZ = false; constexpr int AUDIO_BUFFERSIZE = 4; constexpr int AUDIO_SAMPLERATE = 48000; constexpr int TRACK_COUNT = 4; diff --git a/src/main_perkons.cc b/src/main_perkons.cc index bd1c9a6..7c485b0 100644 --- a/src/main_perkons.cc +++ b/src/main_perkons.cc @@ -60,7 +60,7 @@ namespace Heck { void init() { hw.Configure(); - hw.Init(); + hw.Init(Constants::CPU_BOOST480MHZ); hw.StartLog(Constants::Developer::LOG_BLOCKS_BOOT); but_rec.Init(hw.GetPin(Constants::Hardware::PIN_BUTTON_RECORD), 0);