[tuxdroid-svn] r514 - firmware/tuxaudio/branches/audio_cleanup
Status: Beta
Brought to you by:
ks156
From: Paul_R <c2m...@c2...> - 2007-09-12 12:20:16
|
Author: Paul_R Date: 2007-09-12 14:20:09 +0200 (Wed, 12 Sep 2007) New Revision: 514 Modified: firmware/tuxaudio/branches/audio_cleanup/init.c Log: * Replaced ASM by C code Modified: firmware/tuxaudio/branches/audio_cleanup/init.c =================================================================== --- firmware/tuxaudio/branches/audio_cleanup/init.c 2007-09-12 12:19:00 UTC (rev 513) +++ firmware/tuxaudio/branches/audio_cleanup/init.c 2007-09-12 12:20:09 UTC (rev 514) @@ -153,9 +153,8 @@ SPCR = 0x50; SPSR = 0x00; - asm volatile /* clear the SPI interrupt flag by reading both SPSR and SPDR */ - ("in __tmp_reg__, %0" "\n\t" "in __tmp_reg__, %1" "\n\t":: - "I" (_SFR_IO_ADDR(SPSR)), "I"(_SFR_IO_ADDR(SPDR))); + /* Read the SPDR to clear the SPI interrupt flag */ + i = SPDR; // External Interrupt(s) initialization EICRA = (_BV(ISC11) | _BV(ISC10) | _BV(ISC01) | _BV(ISC00)); /* Rising edge of INT0 and rising edge of INT1 */ |