[ECOS] Re: adding a new i2c device

Jani Monoses jani@iv.ro
Wed Jun 15 08:08:00 GMT 2005


>     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



More information about the Ecos-discuss mailing list