summaryrefslogtreecommitdiff
path: root/project_starter_files/Core/Inc/adc.h
blob: 15713a86cd3f5bb17481c91ed35ff97899e5ac97 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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_ */