Bläddra i källkod

RTX5: typo correction in SysTick Overflow detection

Robert Rostohar 9 år sedan
förälder
incheckning
44fca9d1f6
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      CMSIS/RTOS2/RTX/Source/core_cm.h

+ 1 - 1
CMSIS/RTOS2/RTX/Source/core_cm.h

@@ -201,7 +201,7 @@ __STATIC_INLINE uint32_t os_SysTick_GetVal (void) {
 /// Get SysTick Overflow (Auto Clear)
 /// \return    SysTick Overflow flag
 __STATIC_INLINE uint32_t os_SysTick_GetOvf (void) {
-  return ((SysTick->CTRL >> 26) & 1U);
+  return ((SysTick->CTRL >> 16) & 1U);
 }
 
 /// Enable SysTick Timer