From a9b2fb5ee3114fe835f6515b6aeae7454f66d821 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Tue, 16 Oct 2007 01:25:17 +0000 Subject: Finally full multicore support for PortalPlayer 502x targets with an eye towards the possibility of other types. All SVN targets the low-lag code to speed up blocking operations. Most files are modified here simple due to a name change to actually support a real event object and a param change to create_thread. Add some use of new features but just sit on things for a bit and leave full integration for later. Work will continue on to address size on sensitive targets and simplify things if possible. Any PP target having problems with SWP can easily be changed to sw corelocks with one #define change in config.h though only PP5020 has shown an issue and seems to work without any difficulties. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15134 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/i2c-pp.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'firmware/export/i2c-pp.h') diff --git a/firmware/export/i2c-pp.h b/firmware/export/i2c-pp.h index 3048acbaba..908db22554 100644 --- a/firmware/export/i2c-pp.h +++ b/firmware/export/i2c-pp.h @@ -45,6 +45,10 @@ /* TODO: Fully implement i2c driver */ +/* To be used by drivers that need to do multiple i2c operations + atomically */ +extern struct spinlock i2c_spin; + void i2c_init(void); int i2c_readbyte(unsigned int dev_addr, int addr); int pp_i2c_send(unsigned int addr, int data0, int data1); -- cgit v1.2.3