Hellen says merge #1772 adc.h

This commit is contained in:
rusefi 2020-09-12 04:02:54 -04:00
parent 082ab11dfb
commit 875651b471
1 changed files with 10 additions and 0 deletions

View File

@ -41,6 +41,16 @@ float getMCUInternalTemperature(void);
void addChannel(const char *name, adc_channel_e setting, adc_channel_mode_e mode);
void removeChannel(const char *name, adc_channel_e setting);
/* Depth of the conversion buffer, channels are sampled X times each.*/
#ifndef ADC_BUF_DEPTH_SLOW
#define ADC_BUF_DEPTH_SLOW 8
#endif /* ADC_BUF_DEPTH_SLOW */
#ifndef ADC_BUF_DEPTH_FAST
#define ADC_BUF_DEPTH_FAST 4
#endif /* ADC_BUF_DEPTH_FAST */
// todo: preprocessor way of doing 'max'?
// max(ADC_BUF_DEPTH_SLOW, ADC_BUF_DEPTH_FAST)
#define MAX_ADC_GRP_BUF_DEPTH 8