From: Andrew Lunn <andrew@lunn.ch>
To: Alexandre <thekyz@gmail.com>
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] I2C Bus definition problem
Date: Fri, 07 Sep 2007 11:22:00 -0000 [thread overview]
Message-ID: <20070907112226.GO32192@lunn.ch> (raw)
In-Reply-To: <d5aafeec0709070323j338db350n6ad3d067d48b1672@mail.gmail.com>
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
next prev parent reply other threads:[~2007-09-07 11:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-07 10:23 Alexandre
2007-09-07 11:22 ` Andrew Lunn [this message]
2007-09-07 12:50 ` Andrew Lunn
2007-09-07 12:53 ` Alexandre
2007-09-07 13:07 ` Andrew Lunn
2007-09-07 13:09 ` Alexandre
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070907112226.GO32192@lunn.ch \
--to=andrew@lunn.ch \
--cc=ecos-discuss@ecos.sourceware.org \
--cc=thekyz@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).