[ECOS] I2C Bus definition problem

Alexandre thekyz@gmail.com
Fri Sep 7 12:53:00 GMT 2007


Ok it works !

Thank you, do you know what the error is about so ?

On 9/7/07, Andrew Lunn <andrew@lunn.ch> wrote:
> 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