mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-07-25 14:28:07 +02: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? */
|
/* 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…
x
Reference in New Issue
Block a user