extern void phantomInterrupt(void);
extern void esmHighInterrupt(void);
extern void phantomInterrupt(void);
-//extern void vPortPreemptiveTick(void); // FreeRTOS 7.4.2
+#if FREERTOS_VERSION_NUMBER_MAYOR == 7 && \
+FREERTOS_VERSION_NUMBER_MINOR == 0 && \
+FREERTOS_VERSION_NUMBER_REV == 2
extern void vPreemptiveTick(void); // FreeRTOS 7.0.2
+#else
+extern void vPortPreemptiveTick(void); // FreeRTOS 7.4 and higher
+#endif
extern void linHighLevelInterrupt(void);
extern void mibspi1HighLevelInterrupt(void);
extern void adc1Group1Interrupt(void);