mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
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:
commit
a25fcc53e8
@ -76,6 +76,7 @@ void adc_service(void) {
|
||||
ADC->SEQ_1bits.CH##x = 1; \
|
||||
GPIO->FUNC_SEL.ADC##x = 1; \
|
||||
GPIO->PAD_DIR.ADC##x = 0; \
|
||||
GPIO->PAD_KEEP.ADC##x = 0; \
|
||||
GPIO->PAD_PU_EN.ADC##x = 0; \
|
||||
}} while (0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user