analog.h: clamp ADC reference voltage to AVcc.
As none of the known controllers allow a meaningful other choice, it's a bit pointless to provide this as a user choice via config.h.
This commit is contained in:
parent
41e208a21f
commit
efa1e9bcbb
9
analog.h
9
analog.h
|
|
@ -13,7 +13,14 @@
|
||||||
#define REFERENCE_2V56 192
|
#define REFERENCE_2V56 192
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "config_wrapper.h"
|
/** \def REFERENCE
|
||||||
|
Which analog reference to use. As none of the known controllers provides a
|
||||||
|
fixed voltage on the Aref pin and all of them have a thermistor measurement
|
||||||
|
range of 0..5 volts, let's clamp this here to the only choice, AVcc, instead
|
||||||
|
of confusing the user with a choice.
|
||||||
|
*/
|
||||||
|
//#include "config_wrapper.h"
|
||||||
|
#define REFERENCE REFERENCE_AVCC
|
||||||
|
|
||||||
#ifndef REFERENCE
|
#ifndef REFERENCE
|
||||||
#warning define REFERENCE as one of
|
#warning define REFERENCE as one of
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,14 @@
|
||||||
#define REFERENCE_2V56 192
|
#define REFERENCE_2V56 192
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "config_wrapper.h"
|
/** \def REFERENCE
|
||||||
|
Which analog reference to use. As none of the known controllers provides a
|
||||||
|
fixed voltage on the Aref pin and all of them have a thermistor measurement
|
||||||
|
range of 0..5 volts, let's clamp this here to the only choice, AVcc, instead
|
||||||
|
of confusing the user with a choice.
|
||||||
|
*/
|
||||||
|
//#include "config_wrapper.h"
|
||||||
|
#define REFERENCE REFERENCE_AVCC
|
||||||
|
|
||||||
#ifndef REFERENCE
|
#ifndef REFERENCE
|
||||||
#warning define REFERENCE as one of
|
#warning define REFERENCE as one of
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue