summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/lradc-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-11-14 21:05:10 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-11-14 21:05:10 +0000
commita9d56ac5de93611b80fa46992390428719782f79 (patch)
tree7d29e190379858be3a4730d42144ad8f18da2bf9 /firmware/target/arm/imx233/lradc-imx233.h
parent9a4213c8f32fb9f1bc94bbe623f5635f24e8d1b3 (diff)
downloadrockbox-a9d56ac5de93611b80fa46992390428719782f79.tar.gz
rockbox-a9d56ac5de93611b80fa46992390428719782f79.tar.bz2
rockbox-a9d56ac5de93611b80fa46992390428719782f79.zip
imx233: use generic code for both channels and delays arbiter code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30981 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx233/lradc-imx233.h')
-rw-r--r--firmware/target/arm/imx233/lradc-imx233.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/lradc-imx233.h b/firmware/target/arm/imx233/lradc-imx233.h
index a72916054a..fb0085fc74 100644
--- a/firmware/target/arm/imx233/lradc-imx233.h
+++ b/firmware/target/arm/imx233/lradc-imx233.h
@@ -121,8 +121,17 @@ void imx233_lradc_release_channel(int chan);
// doesn't check that channel is in use!
void imx233_lradc_reserve_channel(int channel);
+int imx233_lradc_acquire_delay(int timeout);
+// doesn't check that delay channel is in use!
+void imx233_lradc_reserve_delay(int dchannel);
+void imx233_lradc_release_delay(int dchan);
+
/* enable sensing and return temperature in kelvin,
* channels must already be configured as nmos and pmos */
int imx233_lradc_sense_die_temperature(int nmos_chan, int pmos_chan);
+void imx233_lradc_setup_battery_conversion(bool automatic, int scale_factor);
+// read scaled voltage, only available after proper setup
+int imx233_lradc_read_battery_voltage(void);
+
#endif /* __lradc_imx233__ */