summaryrefslogtreecommitdiffstats
path: root/firmware/export/pcf50606.h
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2007-02-01 10:47:22 +0000
committerSteve Bavin <pondlife@pondlife.me>2007-02-01 10:47:22 +0000
commit338d94f4661643dcd4c6440aa1c12af6933da4a5 (patch)
tree966f0bf5dcc7f4ccb71c266317adedd5705c5d2f /firmware/export/pcf50606.h
parent73ee2379c5361126d6fb9754845fc9e249614e40 (diff)
downloadrockbox-338d94f4661643dcd4c6440aa1c12af6933da4a5.tar.gz
rockbox-338d94f4661643dcd4c6440aa1c12af6933da4a5.tar.bz2
rockbox-338d94f4661643dcd4c6440aa1c12af6933da4a5.zip
FS#4770 - Add USB charging for the H300 series
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12169 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/pcf50606.h')
-rw-r--r--firmware/export/pcf50606.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/export/pcf50606.h b/firmware/export/pcf50606.h
index 1f4b6ba3ad..f01df520cf 100644
--- a/firmware/export/pcf50606.h
+++ b/firmware/export/pcf50606.h
@@ -24,6 +24,8 @@ int pcf50606_write_multiple(int address, const unsigned char* buf, int count);
int pcf50606_write(int address, unsigned char val);
int pcf50606_read_multiple(int address, unsigned char* buf, int count);
int pcf50606_read(int address);
+void pcf50606_set_usb_charging(bool on);
+bool pcf50606_usb_charging_enabled(void);
/* internal low level calls used by the eeprom driver for h300 */
void pcf50606_i2c_init(void);
@@ -32,8 +34,11 @@ void pcf50606_i2c_start(void);
void pcf50606_i2c_stop(void);
void pcf50606_i2c_ack(bool ack);
bool pcf50606_i2c_getack(void);
+#if defined(IRIVER_H300_SERIES)
+/* USB charging support */
void pcf50606_i2c_outb(unsigned char byte);
unsigned char pcf50606_i2c_inb(bool ack);
+#endif
#if defined(IAUDIO_X5) && !defined(SIMULATOR)
void pcf50606_reset_timeout(void);