Description: clear systick pending status
IssueNo: https://gitee.com/openharmony/kernel_liteos_m/issues/I93ZUQ Feature Or Bugfix: Feature Binary Source: No Signed-off-by: hw_llm <liu.limin@huawei.com>
This commit is contained in:
parent
e539a6c951
commit
92fbcaf074
|
@ -86,7 +86,7 @@ STATIC UINT64 SysTickReload(UINT64 nextResponseTime)
|
||||||
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
||||||
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
||||||
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
||||||
NVIC_ClearPendingIRQ(SysTick_IRQn);
|
SCB->ICSR |= SCB_ICSR_PENDSTCLR_Msk;
|
||||||
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
||||||
|
|
||||||
return nextResponseTime;
|
return nextResponseTime;
|
||||||
|
|
|
@ -85,7 +85,7 @@ STATIC UINT64 SysTickReload(UINT64 nextResponseTime)
|
||||||
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
||||||
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
||||||
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
||||||
NVIC_ClearPendingIRQ(SysTick_IRQn);
|
SCB->ICSR |= SCB_ICSR_PENDSTCLR_Msk;
|
||||||
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
||||||
return nextResponseTime;
|
return nextResponseTime;
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ STATIC UINT64 SysTickReload(UINT64 nextResponseTime)
|
||||||
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
||||||
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
||||||
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
||||||
NVIC_ClearPendingIRQ(SysTick_IRQn);
|
SCB->ICSR |= SCB_ICSR_PENDSTCLR_Msk;
|
||||||
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
||||||
return nextResponseTime;
|
return nextResponseTime;
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ STATIC UINT64 SysTickReload(UINT64 nextResponseTime)
|
||||||
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
||||||
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
||||||
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
||||||
NVIC_ClearPendingIRQ(SysTick_IRQn);
|
SCB->ICSR |= SCB_ICSR_PENDSTCLR_Msk;
|
||||||
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
||||||
return nextResponseTime;
|
return nextResponseTime;
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,7 +85,7 @@ STATIC UINT64 SysTickReload(UINT64 nextResponseTime)
|
||||||
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
||||||
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
||||||
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
||||||
NVIC_ClearPendingIRQ(SysTick_IRQn);
|
SCB->ICSR |= SCB_ICSR_PENDSTCLR_Msk;
|
||||||
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
||||||
return nextResponseTime;
|
return nextResponseTime;
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ STATIC UINT64 SysTickReload(UINT64 nextResponseTime)
|
||||||
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
||||||
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
||||||
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
||||||
NVIC_ClearPendingIRQ(SysTick_IRQn);
|
SCB->ICSR |= SCB_ICSR_PENDSTCLR_Msk;
|
||||||
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
||||||
return nextResponseTime;
|
return nextResponseTime;
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ STATIC UINT64 SysTickReload(UINT64 nextResponseTime)
|
||||||
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
||||||
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
||||||
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
||||||
NVIC_ClearPendingIRQ(SysTick_IRQn);
|
SCB->ICSR |= SCB_ICSR_PENDSTCLR_Msk;
|
||||||
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
||||||
return nextResponseTime;
|
return nextResponseTime;
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ STATIC UINT64 SysTickReload(UINT64 nextResponseTime)
|
||||||
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
||||||
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
||||||
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
||||||
NVIC_ClearPendingIRQ(SysTick_IRQn);
|
SCB->ICSR |= SCB_ICSR_PENDSTCLR_Msk;
|
||||||
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
||||||
return nextResponseTime;
|
return nextResponseTime;
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ STATIC UINT64 SysTickReload(UINT64 nextResponseTime)
|
||||||
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
||||||
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
||||||
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
||||||
NVIC_ClearPendingIRQ(SysTick_IRQn);
|
SCB->ICSR |= SCB_ICSR_PENDSTCLR_Msk;
|
||||||
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
||||||
return nextResponseTime;
|
return nextResponseTime;
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ STATIC UINT64 SysTickReload(UINT64 nextResponseTime)
|
||||||
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
||||||
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
||||||
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
||||||
NVIC_ClearPendingIRQ(SysTick_IRQn);
|
SCB->ICSR |= SCB_ICSR_PENDSTCLR_Msk;
|
||||||
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
||||||
return nextResponseTime;
|
return nextResponseTime;
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,7 +85,7 @@ STATIC UINT64 SysTickReload(UINT64 nextResponseTime)
|
||||||
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
||||||
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
||||||
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
||||||
NVIC_ClearPendingIRQ(SysTick_IRQn);
|
SCB->ICSR |= SCB_ICSR_PENDSTCLR_Msk;
|
||||||
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
||||||
return nextResponseTime;
|
return nextResponseTime;
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ STATIC UINT64 SysTickReload(UINT64 nextResponseTime)
|
||||||
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
||||||
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
||||||
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
||||||
NVIC_ClearPendingIRQ(SysTick_IRQn);
|
SCB->ICSR |= SCB_ICSR_PENDSTCLR_Msk;
|
||||||
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
||||||
return nextResponseTime;
|
return nextResponseTime;
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ STATIC UINT64 SysTickReload(UINT64 nextResponseTime)
|
||||||
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk;
|
||||||
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
SysTick->LOAD = (UINT32)(nextResponseTime - 1UL); /* set reload register */
|
||||||
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
|
||||||
NVIC_ClearPendingIRQ(SysTick_IRQn);
|
SCB->ICSR |= SCB_ICSR_PENDSTCLR_Msk;
|
||||||
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
|
||||||
return nextResponseTime;
|
return nextResponseTime;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue