critical section. xTaskGetTickCountFromISR() contains its own critical
section, and the ISR safe critical sections are not designed to nest,
so reset the critical section. */
portSET_INTERRUPT_MASK_FROM_ISR();
in main.c.
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1630
1d2547de-c912-0410-9cb9-
b8ca96c0e9e2
\r
/* How many times has it overflowed? */\r
ulTickCount = xTaskGetTickCountFromISR();\r
+\r
+ /* This is called from the context switch, so will be called from a\r
+ critical section. xTaskGetTickCountFromISR() contains its own critical\r
+ section, and the ISR safe critical sections are not designed to nest,\r
+ so reset the critical section. */\r
+ portSET_INTERRUPT_MASK_FROM_ISR();\r
\r
/* Is there a SysTick interrupt pending? */\r
if( ( *pulInterruptCTRLState & ulSysTickPendingBit ) != 0UL )\r