aboutsummaryrefslogtreecommitdiffstats
path: root/source/adc.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2020-10-02 11:52:28 -0400
committerClyne Sullivan <clyne@bitgloo.com>2020-10-02 11:52:28 -0400
commita64b86aa545d2d11d397dbaa48bf3edf7dba4ddb (patch)
treefe52df4ec96ae52ef75e93a90eb2281b95f8e910 /source/adc.cpp
parent3fa9bbe4255424b9db34b6020177d217ffbe5faa (diff)
test process_data speed measurement
Diffstat (limited to 'source/adc.cpp')
-rw-r--r--source/adc.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/adc.cpp b/source/adc.cpp
index eca0d16..c28c38f 100644
--- a/source/adc.cpp
+++ b/source/adc.cpp
@@ -79,6 +79,11 @@ namespace adc
adcStartConversion(adcd, &adc_group_config, buffer, count);
gptStartContinuous(gptd, 5);
}
+
+ void read_set_operation_func(operation_t operation_func)
+ {
+ adc_operation_func = operation_func;
+ }
void read_stop()
{