X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Fser_avr.c;h=a54d3764dd35cb79f9960e48bf711631c2609cbf;hb=680ecaecd7ed77d044fbf333ce97e533b04bbfa3;hp=37facaa2f7e39366a55a8275a4cd23470ae42890;hpb=b0ee5db10d096ef0ec5c303be1cef92bd8464d34;p=bertos.git diff --git a/drv/ser_avr.c b/drv/ser_avr.c index 37facaa2..a54d3764 100755 --- a/drv/ser_avr.c +++ b/drv/ser_avr.c @@ -38,6 +38,9 @@ /*#* *#* $Log$ + *#* Revision 1.21 2004/12/13 12:07:06 bernie + *#* DISABLE_IRQSAVE/ENABLE_IRQRESTORE: Convert to IRQ_SAVE_DISABLE/IRQ_RESTORE. + *#* *#* Revision 1.20 2004/12/13 11:51:43 bernie *#* Fix a latent bug with reentrant serial IRQs. *#* @@ -476,7 +479,7 @@ static void spi_starttx(struct SerialHardware *_hw) struct AvrSerial *hw = (struct AvrSerial *)_hw; cpuflags_t flags; - DISABLE_IRQSAVE(flags); + IRQ_SAVE_DISABLE(flags); /* Send data only if the SPI is not already transmitting */ if (!hw->sending && !fifo_isempty(&ser_spi->txfifo)) @@ -485,7 +488,7 @@ static void spi_starttx(struct SerialHardware *_hw) SPDR = fifo_pop(&ser_spi->txfifo); } - ENABLE_IRQRESTORE(flags); + IRQ_RESTORE(flags); } static void spi_setbaudrate(UNUSED(struct SerialHardware *, _hw), UNUSED(unsigned long, rate))