Kevin,
Thanks - we already had #include <adc.h>, it seemed to come like that. Our mcc18 adc.h file actually did not have a definition for ADC_15ANA - it had 0-14 and 16. Assuming the intent is to set all the pins to analog, I changed "ifi_analog_channels" to "ADC_16ANA" if it helps.
In our file, we had
Code:
#define ADC_14ANA 0b11110001 // analog: AN0->13 digital: AN14->15
#define ADC_16ANA 0b11110000 // All analog
Weird, eh?
Thanks again,
James