nobody wrote on Tuesday, July 04, 2006:
In the portSAVE_CONTEXT macro, What does the statement do?
( void ) ulCriticalNesting;
ulCriticalNesting - this variable is used to keep track of how many times we have entered in a crtical area and not exited yet. One of the actions that is done in the enter Critical is to disable interrupts by manipulating I and F bits.
All thru the code, this variable is manipulated by using portENTER_CRITICAL and portEXIT_CRITICAl - which are called as a pair. When does this variable get incremented without being decremented in the code?
An example would help?