Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Re: [AVR-Chat] Arrays and pointers in GCC

Re: [AVR-Chat] Arrays and pointers in GCC

2009-01-12 by subscriptions@aeolusdevelopment.com

David VanHorn Wrote
>> Right terms, think of bit fields.
>
>Cool, I haven't read about bit fields yet.

Just don't use them to define I/O.  That way lies perdition ;)

Robert

--------------------------------------------------------------------
mail2web.com - Microsoft® Exchange solutions from a leading provider -
http://link.mail2web.com/Business/Exchange

Re: [AVR-Chat] Arrays and pointers in GCC

2009-01-12 by David VanHorn

On Mon, Jan 12, 2009 at 11:46 AM, subscriptions@aeolusdevelopment.com
<subscriptions@aeolusdevelopment.com> wrote:
> David VanHorn Wrote
>>> Right terms, think of bit fields.
>>
>>Cool, I haven't read about bit fields yet.
>
> Just don't use them to define I/O.  That way lies perdition ;)

hmm.. Do you have an example?

Re: [AVR-Chat] Arrays and pointers in GCC

2009-01-12 by dlc

David VanHorn wrote:
> On Mon, Jan 12, 2009 at 11:46 AM, subscriptions@aeolusdevelopment.com
> <subscriptions@aeolusdevelopment.com> wrote:
>> David VanHorn Wrote
>>>> Right terms, think of bit fields.
>>> Cool, I haven't read about bit fields yet.
>> Just don't use them to define I/O.  That way lies perdition ;)
> 
> hmm.. Do you have an example?

Indeed - I use them frequently to work with PORT and PIN IO registers 
with no apparent problem.  The compiler gens tight code for that use as 
well.

DLC
-- 
-------------------------------------------------
Dennis Clark          TTT Enterprises
www.techtoystoday.com
-------------------------------------------------

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.