summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2009-07-11 14:12:02 +0000
committerBertrik Sikken <bertrik@sikken.nl>2009-07-11 14:12:02 +0000
commit24cf6ce2f3f8600849a512b25f357bd99837365e (patch)
treefa000f7d0e0144cff015e7fba84824646606a8f3 /firmware/target/arm
parentad825d66c7dfb5c29d6380e20aba4f8fd6bd847a (diff)
downloadrockbox-24cf6ce2f3f8600849a512b25f357bd99837365e.tar.gz
rockbox-24cf6ce2f3f8600849a512b25f357bd99837365e.tar.bz2
rockbox-24cf6ce2f3f8600849a512b25f357bd99837365e.zip
S5L8700: mask away status bits from ADC conversion result
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21775 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/s5l8700/adc-s5l8700.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/s5l8700/adc-s5l8700.c b/firmware/target/arm/s5l8700/adc-s5l8700.c
index 4407334099..f979a9d54f 100644
--- a/firmware/target/arm/s5l8700/adc-s5l8700.c
+++ b/firmware/target/arm/s5l8700/adc-s5l8700.c
@@ -64,7 +64,7 @@ unsigned short adc_read(int channel)
wakeup_wait(&adc_wakeup, TIMEOUT_BLOCK);
/* get the converted data */
- data = ADCDAT0;
+ data = ADCDAT0 & 0x3FF;
/* put ADC back into standby */
ADCCON |= (1 << 2);