From 7077b8d448a847f593402381be5244f86eae75e8 Mon Sep 17 00:00:00 2001
From: Clyne Sullivan <clyne@bitgloo.com>
Date: Tue, 25 Aug 2020 21:01:08 -0400
Subject: stable signal handling towards 100kHz

---
 source/dac.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'source/dac.cpp')

diff --git a/source/dac.cpp b/source/dac.cpp
index 644689e..6d5950e 100644
--- a/source/dac.cpp
+++ b/source/dac.cpp
@@ -28,7 +28,7 @@ constexpr static const DACConversionGroup dac_group_config = {
 };
 
 constexpr static const GPTConfig gpt_config = {
-  .frequency = 1000000,
+  .frequency = 4000000,
   .callback = nullptr,
   .cr2 = TIM_CR2_MMS_1, /* TRGO */
   .dier = 0
@@ -48,7 +48,7 @@ namespace dac
     void write_start(dacsample_t *buffer, size_t count)
     {
         dacStartConversion(dacd, &dac_group_config, buffer, count);
-        gptStartContinuous(gptd, 100);
+        gptStartContinuous(gptd, 2);
     }
     
     void write_stop()
-- 
cgit v1.2.3