summaryrefslogtreecommitdiffstats
path: root/firmware/export/pcf50606.h
diff options
context:
space:
mode:
authorRob Purchase <shotofadds@rockbox.org>2008-04-04 20:24:08 +0000
committerRob Purchase <shotofadds@rockbox.org>2008-04-04 20:24:08 +0000
commit9b691d335ae4bf3d666d7991fedf56731d8f533e (patch)
treecbb8e923b451bdb1fa559998689d6b06c73cfe3f /firmware/export/pcf50606.h
parentac9b92716a11cf7699f6ce9668b1ca5cd4171cf9 (diff)
downloadrockbox-9b691d335ae4bf3d666d7991fedf56731d8f533e.tar.gz
rockbox-9b691d335ae4bf3d666d7991fedf56731d8f533e.tar.bz2
rockbox-9b691d335ae4bf3d666d7991fedf56731d8f533e.zip
Split out the PCF5060x register defines into a common header and create a generic pcf50606.c using standard i2c read/writes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16966 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/pcf50606.h')
-rw-r--r--firmware/export/pcf50606.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/export/pcf50606.h b/firmware/export/pcf50606.h
index fab7e987d9..44ca24f661 100644
--- a/firmware/export/pcf50606.h
+++ b/firmware/export/pcf50606.h
@@ -19,6 +19,12 @@
#ifndef PCF50606_H
#define PCF50606_H
+#include "pcf5060x.h"
+#include "system.h"
+
+/* The following functions may either be implemented by an optimised driver
+ in the target tree, or by the generic drivers/pcf50606.c */
+
void pcf50606_init(void);
int pcf50606_write_multiple(int address, const unsigned char* buf, int count);
int pcf50606_write(int address, unsigned char val);