# Setup configuration options.
set(ADC_REF_VALUES ADC_AVR_REF_AREF ADC_AVR_REF_AVCC ADC_AVR_REF_INT_1_1 ADC_AVR_REF_INT_2_56)
setup_option_def(ADC_AVR_REF ADC_AVR_REF_INT_2_56 MACRO "ADC reference voltage setting for AVR." VALUE_LIST ADC_REF_VALUES CONFIG_FILE "adc_avr_config")

set(ADC_PRESCALE_VALUES ADC_AVR_DIV_2 ADC_AVR_DIV_4 ADC_AVR_DIV_8 ADC_AVR_DIV_16 ADC_AVR_DIV_32 ADC_AVR_DIV_64 ADC_AVR_DIV_128)
setup_option_def(ADC_AVR_PRESCALE ADC_AVR_DIV_128 MACRO "ADC prescaler for AVR." VALUE_LIST ADC_PRESCALE_VALUES CONFIG_FILE "adc_avr_config")

set(ADC_TIMER_PRESCALE_VALUES TIMER0_AVR_DIV_1 TIMER0_AVR_DIV_8 TIMER0_AVR_DIV_64 TIMER0_AVR_DIV_256 TIMER0_AVR_DIV_1024)
setup_option_def(ADC_AVR_TIMER_PRESCALE TIMER0_AVR_DIV_64 MACRO "ADC timer prescaler for AVR." VALUE_LIST ADC_TIMER_PRESCALE_VALUES CONFIG_FILE "adc_avr_config")