[ECOS] I2C Bus definition problem
Andrew Lunn
andrew@lunn.ch
Fri Sep 7 12:50:00 GMT 2007
Hi Alex
Try this:
static cyg_lpc2xxx_i2c_extra extra;
CYG_I2C_BUS(i2cBusLpc,
cyg_lpc2xxx_i2c_init,
cyg_lpc2xxx_i2c_tx,
cyg_lpc2xxx_i2c_rx,
cyg_lpc2xxx_i2c_stop,
((void*)(&extra))
);
void cyg_user_start(void)
{
CYG_I2C_DEVICE(i2cDevCamera,
&i2cBusLpc,
(cyg_uint16)I2C_CAMERA_ADDRESS,
(cyg_uint16)0,
(cyg_uint32)0
);
}
Andrew
--
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