From 0f2ea7deaf0cba2f0ca07f6611c5a9e87d531f5b Mon Sep 17 00:00:00 2001 From: "github-classroom[bot]" <66690702+github-classroom[bot]@users.noreply.github.com> Date: Tue, 26 Aug 2025 17:03:24 +0000 Subject: Initial commit --- project_starter_files/Core/Inc/adc.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 project_starter_files/Core/Inc/adc.h (limited to 'project_starter_files/Core/Inc/adc.h') 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_ */ -- cgit v1.2.3