??? 11/24/04 09:18 Read: times |
#81812 - Same subject as the post I'm replying to Responding to: ???'s previous message |
You have been misinformed. You can safely use the operators you mention on integer values within an interrupt routine.
The 'gotcha' with integers in an ISR comes when the integer is shared between ISR code and non-ISR code. Integer operations are not atomic so in this situation you have to use some scheme to ensure that access to the integer is protected. |
Topic | Author | Date |
Integer operation in Interrupt with keil | 01/01/70 00:00 | |
Same subject as the post I'm replying to | 01/01/70 00:00 | |
Keil Knowledgebase | 01/01/70 00:00 | |
not really relevant | 01/01/70 00:00 | |
actual problem | 01/01/70 00:00 | |
no...![]() | 01/01/70 00:00 |