I am sorry but I do not understand your question, who is going to fill the 
array? is done in an ISR? and you need to protect the data from?

---- Original message ----
>Date: Tue, 10 Oct 2006 23:35:22 -0400
>From: "Jon Hallsten" <[EMAIL PROTECTED]>  
>Subject: Re: [Sdcc-user] idata date type w/ ISR on 8-bit 8051 architecture.... 
> 
>To: <sdcc-user@lists.sourceforge.net>
>
>   All SDCC -
>    
>   I have a question about an idata data type on an
>   8051 architecture:
>    
>   For example:
>   static volatile unsigned char idata rxbuf[32];  //
>   Uart receive buffer
>    
>   On a 8-bit architecture where ISRs are used... do I
>   need to protect accesses to this array to ensure
>   that data is not corrupted?  Using the critical { }
>   compiler directive for instance.
>    
>   Or does interaction with this buffer not require
>   this protection?
>    
>   Thanks in advance for your help on this.
>   Jon Hallsten
>________________>-------------------------------------------------------------------------
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>________________>_______________________________________________
>Sdcc-user mailing list
>Sdcc-user@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/sdcc-user

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to