openrcore/includes/hardware/adc.h
Aaron Cook 8f0f0a0535 Add basic ADC support
Planning on abstracting this behind hardware setup APIs, but this works
for a simple demo until then
2025-09-08 15:38:08 -05:00

10 lines
255 B
C

#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_ */