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

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

Re: [avr-gcc-list] Problem on receive interrupt with Atmega8.


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Problem on receive interrupt with Atmega8.
Date: Mon, 7 Aug 2006 10:13:57 +0200 (MET DST)

"frankie" <address@hidden> wrote:

> /* UART received handler signal */
> 
> SIGNAL(USART_RXC_vect)

If you're using avr-libc >= 1.4.x (it appears you're using it because
you're using the new style vector name), please stop using SIGNAL(),
use ISR() instead.  SIGNAL() is only kept for backwards compatibility,
as the name of the term `signal' has caused a lot of confusion in the
past.

>         if(WriteBufPos > 5)

You didn't tell us the declaration of that variable.  My guess is that
you're simply stumbling across FAQ#1: (non-)use of volatile to
communicate things into/out of ISRs.

Please do read the FAQ!
-- 

J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/




reply via email to

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