2008/10/10, Rob Hamerling <[EMAIL PROTECTED]>: > > > Do you mean 'volatile' is not needed? > Well, all PIC registers are defined 'volatile', which means among others > that these will not be used to store intermediate results. Seems good to me. > And is volatile is also needed when a var is changed in different tasks (like interrupt). (no need to discuse if it is wise to change TRIS in the interrupt though). Volatile makes code work like it apears in the source, no tricks, no optimisation. Please keep all registers volatile!
Joep --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jallib?hl=en -~----------~----~----~----~------~----~------~--~---
