Merge pull request #8292 from rotorman/rotorman-2.3-dev-simplifications

RTOS_MS_PER_TICK calculation simplification
This commit is contained in:
Bertrand Songis
2021-03-10 16:08:57 +01:00
committed by GitHub
+1 -1
View File
@@ -155,7 +155,7 @@ template<int SIZE>
}
#endif
#define RTOS_MS_PER_TICK ((CFG_CPU_FREQ / CFG_SYSTICK_FREQ) / (CFG_CPU_FREQ / 1000)) // RTOS timer tick length in ms (currently 2)
#define RTOS_MS_PER_TICK (1000 / CFG_SYSTICK_FREQ) // RTOS timer tick length in ms (currently 1 for STM32, 2 for others)
typedef OS_TID RTOS_TASK_HANDLE;
typedef OS_MutexID RTOS_MUTEX_HANDLE;