From 0ff718e7cd7159c30636aa323a666ac1af684f63 Mon Sep 17 00:00:00 2001 From: sowgro Date: Sun, 31 Aug 2025 13:25:35 -0400 Subject: Setup project --- project/Core/Inc/adc.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 project/Core/Inc/adc.h (limited to 'project/Core/Inc/adc.h') 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_ */ -- cgit v1.2.3