- AD0_CR = AD_CR_CLKS10 | AD_CR_PDN | ((11 - 1) << AD_CR_CLKDIVSHIFT) | AD_CR_SEL3;
- AD0_CR |= AD_CR_START_NOW;
+ unsigned portLONG ulCompareMatch;
+
+ SCB_PCONP |= SCB_PCONP_PCAD0;
+ SCB_PCONP |= SCB_PCONP_PCAD1;
+
+ PCB_PINSEL0 |= PCB_PINSEL0_P06_AD10;
+ PCB_PINSEL0 |= PCB_PINSEL0_P010_AD12;
+ PCB_PINSEL0 |= PCB_PINSEL0_P012_AD13;
+ PCB_PINSEL0 |= PCB_PINSEL0_P013_AD14;
+ PCB_PINSEL0 |= PCB_PINSEL0_P015_AD15;
+
+ // configure MAT0.1 ... assumes TIMER0 already initialized and running