|
|
@ -59,6 +59,11 @@
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#define GET_TEMP_5_ADC() -1
|
|
|
|
#define GET_TEMP_5_ADC() -1
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if HAS_TEMP_PROBE
|
|
|
|
|
|
|
|
#define GET_PROBE_ADC() PIN_TO_ADC(TEMP_PROBE_PIN)
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define GET_PROBE_ADC() -1
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#if HAS_TEMP_ADC_BED
|
|
|
|
#if HAS_TEMP_ADC_BED
|
|
|
|
#define GET_BED_ADC() PIN_TO_ADC(TEMP_BED_PIN)
|
|
|
|
#define GET_BED_ADC() PIN_TO_ADC(TEMP_BED_PIN)
|
|
|
|
#else
|
|
|
|
#else
|
|
|
@ -82,6 +87,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
#define IS_ADC_REQUIRED(n) (GET_TEMP_0_ADC() == n || GET_TEMP_1_ADC() == n || GET_TEMP_2_ADC() == n \
|
|
|
|
#define IS_ADC_REQUIRED(n) (GET_TEMP_0_ADC() == n || GET_TEMP_1_ADC() == n || GET_TEMP_2_ADC() == n \
|
|
|
|
|| GET_TEMP_3_ADC() == n || GET_TEMP_4_ADC() == n || GET_TEMP_5_ADC() == n \
|
|
|
|
|| GET_TEMP_3_ADC() == n || GET_TEMP_4_ADC() == n || GET_TEMP_5_ADC() == n \
|
|
|
|
|
|
|
|
|| GET_PROBE_ADC() == n \
|
|
|
|
|| GET_BED_ADC() == n \
|
|
|
|
|| GET_BED_ADC() == n \
|
|
|
|
|| GET_CHAMBER_ADC() == n \
|
|
|
|
|| GET_CHAMBER_ADC() == n \
|
|
|
|
|| GET_FILAMENT_WIDTH_ADC() == n \
|
|
|
|
|| GET_FILAMENT_WIDTH_ADC() == n \
|
|
|
@ -145,6 +151,9 @@ uint16_t HAL_adc_result;
|
|
|
|
#if GET_TEMP_5_ADC() == 0
|
|
|
|
#if GET_TEMP_5_ADC() == 0
|
|
|
|
TEMP_5_PIN,
|
|
|
|
TEMP_5_PIN,
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if GET_PROBE_ADC() == 0
|
|
|
|
|
|
|
|
TEMP_PROBE_PIN,
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#if GET_BED_ADC() == 0
|
|
|
|
#if GET_BED_ADC() == 0
|
|
|
|
TEMP_BED_PIN,
|
|
|
|
TEMP_BED_PIN,
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
@ -176,6 +185,9 @@ uint16_t HAL_adc_result;
|
|
|
|
#if GET_TEMP_5_ADC() == 1
|
|
|
|
#if GET_TEMP_5_ADC() == 1
|
|
|
|
TEMP_5_PIN,
|
|
|
|
TEMP_5_PIN,
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if GET_PROBE_ADC() == 1
|
|
|
|
|
|
|
|
TEMP_PROBE_PIN,
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#if GET_BED_ADC() == 1
|
|
|
|
#if GET_BED_ADC() == 1
|
|
|
|
TEMP_BED_PIN,
|
|
|
|
TEMP_BED_PIN,
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
@ -215,6 +227,9 @@ uint16_t HAL_adc_result;
|
|
|
|
#if GET_TEMP_5_ADC() == 0
|
|
|
|
#if GET_TEMP_5_ADC() == 0
|
|
|
|
{ PIN_TO_INPUTCTRL(TEMP_5_PIN) },
|
|
|
|
{ PIN_TO_INPUTCTRL(TEMP_5_PIN) },
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if GET_PROBE_ADC() == 0
|
|
|
|
|
|
|
|
{ PIN_TO_INPUTCTRL(TEMP_PROBE_PIN) },
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#if GET_BED_ADC() == 0
|
|
|
|
#if GET_BED_ADC() == 0
|
|
|
|
{ PIN_TO_INPUTCTRL(TEMP_BED_PIN) },
|
|
|
|
{ PIN_TO_INPUTCTRL(TEMP_BED_PIN) },
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
@ -255,6 +270,9 @@ uint16_t HAL_adc_result;
|
|
|
|
#if GET_TEMP_5_ADC() == 1
|
|
|
|
#if GET_TEMP_5_ADC() == 1
|
|
|
|
{ PIN_TO_INPUTCTRL(TEMP_5_PIN) },
|
|
|
|
{ PIN_TO_INPUTCTRL(TEMP_5_PIN) },
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if GET_PROBE_ADC() == 1
|
|
|
|
|
|
|
|
{ PIN_TO_INPUTCTRL(TEMP_PROBE_PIN) },
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#if GET_BED_ADC() == 1
|
|
|
|
#if GET_BED_ADC() == 1
|
|
|
|
{ PIN_TO_INPUTCTRL(TEMP_BED_PIN) },
|
|
|
|
{ PIN_TO_INPUTCTRL(TEMP_BED_PIN) },
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|