mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
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
This commit is contained in:
parent
9a4213c8f3
commit
a9d56ac5de
2 changed files with 96 additions and 25 deletions
|
|
@ -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__ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue