Hellen says merge #1772 adc.h
This commit is contained in:
parent
a0cd451c5d
commit
958538e5aa
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue