simulavr-devel
[Top][All Lists]
Advanced

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

Re: [Simulavr-devel] Timer Test


From: Keith Gudger
Subject: Re: [Simulavr-devel] Timer Test
Date: Thu, 13 Nov 2003 10:58:23 -0800 (PST)

Ted:

Attached is a diff showing the line that changed.  HTH.

Keith

On Wed, 12 Nov 2003, Theodore A. Roth wrote:

> 
> 
> On Wed, 12 Nov 2003, Keith Gudger wrote:
> 
> > Ted:
> >
> > The timer.c changes I'm talking about were in the AVR code, not the
> > simulavr code.  I couldn't download your test program because I'm dialed
> > in today.  So the changes I made just removed the timer interrupt routines
> > for the stuff not in the at43usb320.
> 
> That sounds like what I did. I just #ifdef'd out the unknown registers.
> 
> >
> > BTW, I think I may have changed one line in spi.c since the file I sent
> > you.  Around line 190, there was something like:
> >         spi->spsr &= ~mask_SPIF;
> >         spi->spsr = 0;
> >
> > The second line was a mistake, and I took it out.
> 
> Yeah, kinda defeats the first line, don't it? ;-)
> 
> Ted Roth
> 
> 
> 
--- spi.c       2003-11-07 11:06:30.000000000 -0800
+++ /asic/keith/simulavr/spi.co 2003-11-13 10:56:55.000000000 -0800
     {
         AvrCore *core = (AvrCore *)vdev_get_core((VDevice *)spi);
         avr_core_irq_raise( core, irq_vect_table_index(SPI_STC) );
         spi->spsr &= ~mask_SPIF;
+                spi->spsr = 0 ;
     }

reply via email to

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