wip: grbl: hook up ADC module
diff --git a/grbl/defaults.h b/grbl/defaults.h
index 2e46130..46fee6a 100644
--- a/grbl/defaults.h
+++ b/grbl/defaults.h
@@ -63,6 +63,19 @@
#define DEFAULT_HOMING_SEEK_RATE 500.0 // mm/min
#define DEFAULT_HOMING_DEBOUNCE_DELAY 250 // msec (0-65k)
#define DEFAULT_HOMING_PULLOFF 1.0 // mm
+ #ifdef USE_ADC
+ #define DEFAULT_ENABLE_ADC 1 // Setting bit for marking ADC as on
+ #define DEFAULT_ADC_MODE ADC_CONFIG_MODE_SW_TRIGGER // Software triggering next conversion
+ #define DEFAULT_ADC_REFERENCE ADC_CONFIG_REFERENCE_INTERNAL_1VREF // AVcc reference input voltage
+ #define DEFAULT_ADC_READINGS 4 // Times each channel is to be read
+ #define DEFAULT_ADC_RESOLUTION 8 // Integer number of bits
+ #define DEFAULT_ADC_CLOCK 125 // Integer KHz value
+ #define DEFAULT_ADC_CHANNELS_MASK ADC_CONFIG_ENABLED_CHANNELS
+ #ifdef ADC_CONFIG_SYSTEM_ALARM
+ #define DEFAULT_ADC_RANGE_CHANNEL_8_MIN ADC_CONFIG_RANGE_CHANNEL_8_MIN // Celsius degrees
+ #define DEFAULT_ADC_RANGE_CHANNEL_8_MAX ADC_CONFIG_RANGE_CHANNEL_8_MAX // Celsius degrees
+ #endif
+ #endif
#endif
#ifdef DEFAULTS_SHERLINE_5400