alexan_e
Administrator
- Joined
- Mar 16, 2008
- Messages
- 11,888
- Helped
- 2,021
- Reputation
- 4,158
- Reaction score
- 2,031
- Trophy points
- 1,393
- Location
- Greece
- Activity points
- 64,371
I don't see any ininterrupt variable in the attached code of post #1 , do you mean the article in the link?
- - - Updated - - -
oh, ok , you meant post #4
- - - Updated - - -
When a variable is shared in interrupts and the main code then it should always be declared as volatile so that the compiled is forced to read the variable value from the source rather than a cached copy from a register then may be no longer valid.
- - - Updated - - -
oh, ok , you meant post #4
- - - Updated - - -
When a variable is shared in interrupts and the main code then it should always be declared as volatile so that the compiled is forced to read the variable value from the source rather than a cached copy from a register then may be no longer valid.