summaryrefslogtreecommitdiff
path: root/controller/fw/src/adc.h
diff options
context:
space:
mode:
Diffstat (limited to 'controller/fw/src/adc.h')
-rw-r--r--controller/fw/src/adc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/controller/fw/src/adc.h b/controller/fw/src/adc.h
new file mode 100644
index 0000000..e5611cb
--- /dev/null
+++ b/controller/fw/src/adc.h
@@ -0,0 +1,10 @@
+#ifndef __ADC_H__
+#define __ADC_H__
+
+void adc_init(void);
+
+extern uint16_t adc_fft_buf[2][FMEAS_FFT_LEN];
+/* set index of ready buffer in adc.c, reset to -1 in main.c after processing */
+extern volatile int adc_fft_buf_ready_idx;
+
+#endif /* __ADC_H__ */