dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: i2c unification

Re: i2c unification

From: Amaury Pouly <>
Date: Fri, 10 Dec 2010 09:33:48 +0100

> Anyway I am opened for sugesstions. If you could write down simple
> example how you think this should be done I'll be happy to look at.
> I think what he means is that since the i2c busses are always the same for
a given target, the runtime registration stuff adds some overhead and
perhaps we could build the callback table at compile time (using some
ifdefs). Something like perhaps:

static const struct i2c_struct *i2c_if[MAX_I2C_INTERFACES] =

  [MY_I2C_IFACE_NR] = ...
Received on 2010-12-10

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy