Pages: 1 [2]   Go Down
Author Topic: Switching between two ISRs  (Read 618 times)
0 Members and 1 Guest are viewing this topic.
Switzerland
Offline Offline
Sr. Member
****
Karma: 6
Posts: 375
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If it's shared, make it volatile.  If it's only accessed by one side or the other, no need for volatile.  When in doubt, make it volatile.  
loop side access must be protected by disabling interrupts.

Thanks, that's v. clear.
Logged

Pages: 1 [2]   Go Up
Jump to: