mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Added: /* This is called from the context switch, so will be called from a
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.
This commit is contained in:
parent
188128f788
commit
b8c1195c40
|
@ -624,6 +624,12 @@ const unsigned long ulSysTickPendingBit = 0x04000000UL;
|
|||
|
||||
/* How many times has it overflowed? */
|
||||
ulTickCount = xTaskGetTickCountFromISR();
|
||||
|
||||
/* This is called from the context switch, so will be called from a
|
||||
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();
|
||||
|
||||
/* Is there a SysTick interrupt pending? */
|
||||
if( ( *pulInterruptCTRLState & ulSysTickPendingBit ) != 0UL )
|
||||
|
|
Loading…
Reference in a new issue