summaryrefslogtreecommitdiff
path: root/project/Core/Inc/adc.h
diff options
context:
space:
mode:
Diffstat (limited to 'project/Core/Inc/adc.h')
-rw-r--r--project/Core/Inc/adc.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/project/Core/Inc/adc.h b/project/Core/Inc/adc.h
new file mode 100644
index 0000000..15713a8
--- /dev/null
+++ b/project/Core/Inc/adc.h
@@ -0,0 +1,19 @@
+/*
+ * adc.h
+ *
+ * Created on: Apr 13, 2022
+ * Author: bruce
+ */
+
+#ifndef INC_ADC_H_
+#define INC_ADC_H_
+
+#include "stm32l4xx.h"
+
+#define ADC_CHANNEL ADC_CHANNEL_5 // A0 on the left connector
+
+void ADC_Init ();
+void ADC_Start ();
+uint32_t ADC_Read_Value_Blocking ();
+
+#endif /* INC_ADC_H_ */