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:
Markus Hitter 2015-05-11 00:51:52 +02:00
parent 41e208a21f
commit efa1e9bcbb
2 changed files with 16 additions and 2 deletions

View File

@ -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

View File

@ -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