[Top][All Lists]

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

Re: [avr-gcc-list] if statement problem

From: Jesper Hansen
Subject: Re: [avr-gcc-list] if statement problem
Date: Sun, 24 Mar 2002 18:02:40 +0100

You should declare g_orderStatus as volatile as it is shared between an
interrupt and a "normal" function.

volatile uint8_t g_orderStatus;


----- Original Message -----
From: "Paulo Abreu" <address@hidden>
To: <address@hidden>
Sent: Sunday, March 24, 2002 3:34 PM
Subject: [avr-gcc-list] if statement problem

I am doing this peace of code:

(my problem is expressed in the end)
#include <io8535.h>
#include <io.h>
#include <interrupt.h>
#include <sig-avr.h>


avr-gcc-list at http://avr1.org

reply via email to

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