Searched refs:MAX_RESULT (Results 1 – 1 of 1) sorted by relevance
34 #define MAX_RESULT 1023 macro154 output = (input * (MAX_RESULT + 1)) / ref; in adc_calculate_output()155 if (output > MAX_RESULT) { in adc_calculate_output()156 output = MAX_RESULT; in adc_calculate_output()