diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2020-06-18 19:35:11 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2020-06-18 19:35:11 -0400 |
commit | 6473b57cefe4c13cb262ed78bf0e49fe18a20267 (patch) | |
tree | 339cd8492b9bc055330037f7d6a0036415de902f /source | |
parent | 65b755658c62c8cf608c0ba46af4607fd7c74cc5 (diff) |
using serial lib, can connect to device
Diffstat (limited to 'source')
-rw-r--r-- | source/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/main.cpp b/source/main.cpp index b8d2fa1..dc38ddd 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -18,6 +18,8 @@ #include <array>
+static_assert(sizeof(adcsample_t) == sizeof(uint16_t));
+
#if CACHE_LINE_SIZE > 0
CC_ALIGN(CACHE_LINE_SIZE)
#endif
@@ -50,7 +52,7 @@ int main() if (char cmd; usbd.read(&cmd) > 0) {
switch (cmd) {
case 'r': // Read in analog signal
- adc.getSamples(&adc_samples[0], adc_samples.size());
+ adc.getSamples(&adc_samples[0], 100);//adc_samples.size());
usbd.write(adc_samples.data(), adc_samples.size());
break;
case 'i': // Identify ourself as an stmdsp device
|