1
0
Fork 0
forked from len0rd/rockbox

S5L8700: mask away status bits from ADC conversion result

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21775 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2009-07-11 14:12:02 +00:00
parent ad825d66c7
commit 24cf6ce2f3

View file

@ -64,7 +64,7 @@ unsigned short adc_read(int channel)
wakeup_wait(&adc_wakeup, TIMEOUT_BLOCK); wakeup_wait(&adc_wakeup, TIMEOUT_BLOCK);
/* get the converted data */ /* get the converted data */
data = ADCDAT0; data = ADCDAT0 & 0x3FF;
/* put ADC back into standby */ /* put ADC back into standby */
ADCCON |= (1 << 2); ADCCON |= (1 << 2);