aboutsummaryrefslogtreecommitdiffstats
path: root/source/dac.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2020-10-17 13:40:59 -0400
committerClyne Sullivan <clyne@bitgloo.com>2020-10-17 13:40:59 -0400
commit829c4b5dcbcb5383b8c1f7a32591cd03e08f6b37 (patch)
tree33457cb7782e850bbafe396ad8dd144ae0c4d340 /source/dac.cpp
parent27060ea3c827c33a35c916e05efed63d1ca82b77 (diff)
Sampling rate done. 96kS/s
Diffstat (limited to 'source/dac.cpp')
-rw-r--r--source/dac.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/dac.cpp b/source/dac.cpp
index e0f62a5..74b69e3 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 = 440000,
+ .frequency = 2400000,
.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, 5);
+ gptStartContinuous(gptd, 25);
}
void write_stop()