This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: adding a new i2c device
extern cyg_i2c_bus cyg_i2c_xyzzy_bus; \
...
I am creating a device by using the Macro
CYG_I2C_DEVICE(cyg_i2c_eeprom, cyg_i2c_xyzzy_bus, 0xA0, 0x00,CYG_I2C_DEFAULT_DELAY);
The above macro takes a pointer to cyg_i2c_bus. Try this:
CYG_I2C_DEVICE(cyg_i2c_eeprom, &cyg_i2c_xyzzy_bus, 0xA0, 0x00,CYG_I2C_DEFAULT_DELAY);
Jani
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss