Joel Pallent
/
Elec241-adc
c
Diff: ADC.h
- Revision:
- 0:7088bc4c9949
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ADC.h Thu May 31 19:30:01 2018 +0000 @@ -0,0 +1,12 @@ +#ifndef _ADC_H +#define _ADC_H +#include <stm32f4xx.h> + +#define ADC_input_port GPIOC +#define ADC_input_pin 0 +#define ADC_Channel 10 + +void init_ADC(void); +unsigned short read_adc(void); +#endif +