summaryrefslogtreecommitdiff
path: root/project_starter_files/Core/Inc/adc.h
diff options
context:
space:
mode:
authorgithub-classroom[bot] <66690702+github-classroom[bot]@users.noreply.github.com>2025-08-26 17:03:24 +0000
committerGitHub <noreply@github.com>2025-08-26 17:03:24 +0000
commit0f2ea7deaf0cba2f0ca07f6611c5a9e87d531f5b (patch)
tree66b32e47da7602942f1bf4b7d343367ac408cd5a /project_starter_files/Core/Inc/adc.h
download340-repo-Sowgro-0f2ea7deaf0cba2f0ca07f6611c5a9e87d531f5b.tar.gz
340-repo-Sowgro-0f2ea7deaf0cba2f0ca07f6611c5a9e87d531f5b.tar.bz2
340-repo-Sowgro-0f2ea7deaf0cba2f0ca07f6611c5a9e87d531f5b.zip
Initial commit
Diffstat (limited to 'project_starter_files/Core/Inc/adc.h')
-rw-r--r--project_starter_files/Core/Inc/adc.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/project_starter_files/Core/Inc/adc.h b/project_starter_files/Core/Inc/adc.h
new file mode 100644
index 0000000..15713a8
--- /dev/null
+++ b/project_starter_files/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_ */