Page 1 of 1

Service reentrancy protection with high- and low-priority ISRs

PostPosted: Fri Nov 03, 2006 1:56 am
by graeme
My PICC-18 and Salvo LE application uses both high and low priority ISRs both of which make OSSignalBinSem() calls.

Do I need to include OSProtect() & OSUnprotect() around the OSSignalBinSem() call in the low-priority ISR ? (since isn't it at risk to reentrancy from a call in the high priority ISR ?)

Thank you.


Re: Service reentrancy protection with high- and low-priority ISRs

PostPosted: Fri Nov 03, 2006 2:15 am
by aek
1) Yes.

2) -- You'll get much more performance out of your system if you reserve the High ISR(s) for stuff that does not call Salvo. That way all high ISRs run with 0 Salvo-induced latency. See this recent thread http://www.pumpkininc.com/ubb/Forum7/HTML/000192.html for a discussion and some pointers.

------------------