[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] volatie with winavr2010 ?
From: |
Jose Torres |
Subject: |
Re: [avr-libc-dev] volatie with winavr2010 ? |
Date: |
Sun, 30 May 2010 14:15:49 -0400 |
Leiu:
Use: volatile *static* uint8_t first_edge = 'A';
Otherwise the compiler will allocate the variable on the call stack or
optimize it out completely.
- Jose
On Sun, May 30, 2010 at 8:41 AM, Joerg Wunsch <address@hidden> wrote:
> As Leiu wrote:
>
> > Please tell me why?
>
> Because you didn't show us full, compilable code so nobody
> could ever possibly reproduce your problem.
>
> Please use address@hidden for that kind of questions.
> avr-libc-dev is meant for people who like to develop on avr-libc, or
> have in-depth questions about its internals.
>
> --
> cheers, J"org .-.-. --... ...-- -.. . DL8DTL
>
> http://www.sax.de/~joerg/ NIC: JW11-RIPE
> Never trust an operating system you don't have sources for. ;-)
>
> _______________________________________________
> AVR-libc-dev mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avr-libc-dev
>