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:
parent
ad825d66c7
commit
24cf6ce2f3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue