]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/commitdiff
Fixed interrupt identifier selection dependent on FreeRTOS version
authorMichal Horn <hornmich@fel.cvut.cz>
Fri, 17 Oct 2014 12:06:22 +0000 (14:06 +0200)
committerMichal Horn <hornmich@fel.cvut.cz>
Fri, 17 Oct 2014 12:06:22 +0000 (14:06 +0200)
rpp/include/sys/sys_vim.h

index 189fb0ad52b19b952a26db28a06054bcbcd61207..49d80d7d2b4562edc672a06f22eb5afb4c6d8804 100644 (file)
@@ -43,8 +43,13 @@ typedef void (*t_isrFuncPTR)();
 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);