Merge pull request #48 from malvira/bump-libmc1322x-squash

disable pad keeper when using ADC pin; otherwise you'll see a 20k input
This commit is contained in:
Adam Dunkels 2012-11-30 08:50:21 -08:00
commit a25fcc53e8

View file

@ -76,6 +76,7 @@ void adc_service(void) {
ADC->SEQ_1bits.CH##x = 1; \ ADC->SEQ_1bits.CH##x = 1; \
GPIO->FUNC_SEL.ADC##x = 1; \ GPIO->FUNC_SEL.ADC##x = 1; \
GPIO->PAD_DIR.ADC##x = 0; \ GPIO->PAD_DIR.ADC##x = 0; \
GPIO->PAD_KEEP.ADC##x = 0; \
GPIO->PAD_PU_EN.ADC##x = 0; \ GPIO->PAD_PU_EN.ADC##x = 0; \
}} while (0) }} while (0)