aboutsummaryrefslogtreecommitdiffstats
path: root/source/sclock.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2022-04-30 08:41:56 -0400
committerClyne Sullivan <clyne@bitgloo.com>2022-04-30 08:42:45 -0400
commite164629b3839eee0fda0be0e0a9842e78cf02f2b (patch)
treeb72b58665b85a104e5b953af45f00579341b2802 /source/sclock.cpp
parent162dd6de8a0d883962b0b1475f47cbb08e0958d4 (diff)
parent3dd57491b1e81a9d93054eff19ca0e6c65c85b9b (diff)
merge in branch devel
Diffstat (limited to 'source/sclock.cpp')
-rw-r--r--source/sclock.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/source/sclock.cpp b/source/sclock.cpp
index 198c684..6660f95 100644
--- a/source/sclock.cpp
+++ b/source/sclock.cpp
@@ -1,3 +1,14 @@
+/**
+ * @file sclock.cpp
+ * @brief Manages sampling rate clock speeds.
+ *
+ * Copyright (C) 2021 Clyne Sullivan
+ *
+ * Distributed under the GNU GPL v3 or later. You should have received a copy of
+ * the GNU General Public License along with this program.
+ * If not, see <https://www.gnu.org/licenses/>.
+ */
+
#include "sclock.hpp"
GPTDriver *SClock::m_timer = &GPTD6;
@@ -24,7 +35,12 @@ const std::array<unsigned int, 6> SClock::m_rate_divs = {{
/* 48k */ 100,
/* 96k */ 50
#else
- 4500, 2250, 1800, 1125, 750, 375
+ /* 8k */ 4500,
+ /* 16k */ 2250,
+ /* 20k */ 1800,
+ /* 32k */ 1125,
+ /* 48k */ 750,
+ /* 96k */ 375
#endif
}};