This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: I2C Bus definition problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]