From efa1e9bcbb8410b7f3a06592ca650e6dd9801c83 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Mon, 11 May 2015 00:51:52 +0200 Subject: [PATCH] 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. --- analog.h | 9 ++++++++- extruder/analog.h | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/analog.h b/analog.h index deaaf2c..a8a6674 100644 --- a/analog.h +++ b/analog.h @@ -13,7 +13,14 @@ #define REFERENCE_2V56 192 #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 #warning define REFERENCE as one of diff --git a/extruder/analog.h b/extruder/analog.h index 6c927ae..9afcefb 100644 --- a/extruder/analog.h +++ b/extruder/analog.h @@ -12,7 +12,14 @@ #define REFERENCE_2V56 192 #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 #warning define REFERENCE as one of