aboutsummaryrefslogtreecommitdiffstats
path: root/source/adc.cpp
diff options
context:
space:
mode:
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()
{