summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/lradc-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-02-19 12:56:22 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2014-02-20 13:53:39 +0100
commitfd0a86a572038ef091b116e860d262137245d75a (patch)
tree7429f856ad3b34e4bbd845bee2b96ae60afda4ca /firmware/target/arm/imx233/lradc-imx233.h
parent961498d58af174e6a99047113b668dedd72fb6db (diff)
downloadrockbox-fd0a86a572038ef091b116e860d262137245d75a.tar.gz
rockbox-fd0a86a572038ef091b116e860d262137245d75a.tar.bz2
rockbox-fd0a86a572038ef091b116e860d262137245d75a.zip
imx233: split lradc channel setup into source and sampling parameters
Change-Id: I1be43fec9622cb78fc5737e5ed8d7fda17baf576
Diffstat (limited to 'firmware/target/arm/imx233/lradc-imx233.h')
-rw-r--r--firmware/target/arm/imx233/lradc-imx233.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/lradc-imx233.h b/firmware/target/arm/imx233/lradc-imx233.h
index e7853b97a5..0ef8858e02 100644
--- a/firmware/target/arm/imx233/lradc-imx233.h
+++ b/firmware/target/arm/imx233/lradc-imx233.h
@@ -42,6 +42,7 @@
#define LRADC_NUM_CHANNELS 8
#define LRADC_NUM_DELAYS 4
+#define LRADC_NUM_SOURCES 16
#define LRADC_SRC(x) (x)
#define LRADC_SRC_XPLUS LRADC_SRC(2)
@@ -71,7 +72,9 @@
typedef void (*lradc_irq_fn_t)(int chan);
void imx233_lradc_init(void);
-void imx233_lradc_setup_channel(int channel, bool div2, bool acc, int nr_samples, int src);
+void imx233_lradc_setup_source(int channel, bool div2, int src);
+/* variant of the above only for accumulation changes */
+void imx233_lradc_setup_sampling(int channel, bool acc, int nr_samples);
void imx233_lradc_setup_delay(int dchan, int trigger_lradc, int trigger_delays,
int loop_count, int delay);
void imx233_lradc_clear_channel_irq(int channel);