From: batt Date: Fri, 17 Nov 2006 16:01:12 +0000 (+0000) Subject: Serial status MUST be volatile. X-Git-Tag: 1.0.0~514 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=de7fd3296c16e9a128e869c3cdb298b1b4f5a6c7;p=bertos.git Serial status MUST be volatile. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@727 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/drv/ser.h b/drv/ser.h index 5b07fbc1..f0226791 100755 --- a/drv/ser.h +++ b/drv/ser.h @@ -14,6 +14,9 @@ /*#* *#* $Log$ + *#* Revision 1.32 2006/11/17 16:01:12 batt + *#* Serial status MUST be volatile. + *#* *#* Revision 1.31 2006/09/13 18:22:48 bernie *#* Typo. *#* @@ -209,7 +212,7 @@ */ enum { -#if CPU_AVR_ATMEGA64 || CPU_AVR_ATMEGA128 +#if CPU_AVR_ATMEGA64 || CPU_AVR_ATMEGA128 || CPU_AVR_ATMEGA1281 SER_UART0, SER_UART1, SER_SPI, @@ -266,7 +269,7 @@ typedef struct Serial #endif /** Holds the flags defined above. Will be 0 when no errors have occurred. */ - serstatus_t status; + volatile serstatus_t status; /** Low-level interface to hardware. */ struct SerialHardware* hw;