mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -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
|
@ -625,6 +625,12 @@ const unsigned long ulSysTickPendingBit = 0x04000000UL;
|
||||||
/* How many times has it overflowed? */
|
/* How many times has it overflowed? */
|
||||||
ulTickCount = xTaskGetTickCountFromISR();
|
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? */
|
/* Is there a SysTick interrupt pending? */
|
||||||
if( ( *pulInterruptCTRLState & ulSysTickPendingBit ) != 0UL )
|
if( ( *pulInterruptCTRLState & ulSysTickPendingBit ) != 0UL )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue