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


On Fri, Sep 07, 2007 at 12:23:17PM +0200, Alexandre wrote:
> Hi everybody,
> 
> I'm near the end in my attempt to make an I2C driver for the LPC2XXX platform.
> I'm trying to declare my i2c bus using the I2C generic macro CYG_I2C_BUS
> Currently the declaration looks like this:
> 
> CYG_I2C_BUS(i2cBusLpc, cyg_lpc2xxx_i2c_init, cyg_lpc2xxx_i2c_tx,
> cyg_lpc2xxx_i2c_rx, cyg_lpc2xxx_i2c_stop, ((void*)(&extra)) 	);
> 
> 'extra' being declared two lines above like this:
> 
> static cyg_lpc2xxx_i2c_extra extra;
> 
> When I try to compile the code, the compiler says for the line where I
> use the macro:
> 
> 'section attribute cannot be specified for local variables'

I think this means that one of your variables is on the stack, ie
local. You don't want that! 

Can you send me the file?

    Thanks
        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]