openrcore/includes/hardware/adc.h

10 lines
255 B
C
Raw Normal View History

#ifndef _INCLUDES_HARDWARE_ADC_H_
#define _INCLUDES_HARDWARE_ADC_H_
/**
* @brief Read the ADC value from the given channel index. See "adc-channels" in
* your board overlay file.
*/
int adc_get_mv(int channel);
#endif /* _INCLUDES_HARDWARE_ADC_H_ */