diff options
Diffstat (limited to 'source/main.cpp')
-rw-r--r-- | source/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/main.cpp b/source/main.cpp index bb980d0..cc3138f 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -82,8 +82,12 @@ int main() ADC::begin();
DAC::begin();
+ SClock::begin();
USBSerial::begin();
+ SClock::setRate(SClock::Rate::R32K);
+ ADC::setRate(SClock::Rate::R32K);
+
// Start the conversion manager thread
chTMObjectInit(&conversion_time_measurement);
chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1,
|