Add the following defines on top of your code:

DEFINE ADC_BITS 8
DEFINE ADC_CLOCK 2
DEFINE ADC_SAMPLEUS 50

Cheers

Al.