avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Re: issues with struct and volatile


From: Pink Boy
Subject: Re: [avr-gcc-list] Re: issues with struct and volatile
Date: Fri, 24 Jul 2009 20:24:23 -0700 (PDT)

klass sez,

> struct
> {
>   uint8_t *tx_head;
>   uint8_t * volatile tx_tail;
>   uint8_t tx_buffer[DBG_BUF_SZ];

>   /* blah blah */
>   uint8_t dbg_timer;
> } dbg_serial_port;

> Declare the pointer volatile, not the value it is pointing to

Thanks mucho grande.

Mr Foo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]