|
|
@ -183,8 +183,13 @@ static inline int freeMemory() {
|
|
|
|
|
|
|
|
|
|
|
|
#define HAL_ANALOG_SELECT(pin) pinMode(pin, INPUT)
|
|
|
|
#define HAL_ANALOG_SELECT(pin) pinMode(pin, INPUT)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef ADC_RESOLUTION
|
|
|
|
|
|
|
|
#define HAL_ADC_RESOLUTION ADC_RESOLUTION
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define HAL_ADC_RESOLUTION 12
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#define HAL_ADC_VREF 3.3
|
|
|
|
#define HAL_ADC_VREF 3.3
|
|
|
|
#define HAL_ADC_RESOLUTION ADC_RESOLUTION // 12
|
|
|
|
|
|
|
|
#define HAL_START_ADC(pin) HAL_adc_start_conversion(pin)
|
|
|
|
#define HAL_START_ADC(pin) HAL_adc_start_conversion(pin)
|
|
|
|
#define HAL_READ_ADC() HAL_adc_result
|
|
|
|
#define HAL_READ_ADC() HAL_adc_result
|
|
|
|
#define HAL_ADC_READY() true
|
|
|
|
#define HAL_ADC_READY() true
|
|
|
|