1
0
forked from fsfw/fsfw

freeRTOS version checks

This commit is contained in:
2020-12-14 23:21:07 +01:00
parent 95b2191824
commit 9170f466e8
2 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,9 @@
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#if (tskKERNEL_VERSION_MAJOR == 8 && tskKERNEL_VERSION_MINOR > 2) || \
tskKERNEL_VERSION_MAJOR > 8
// todo: does not work for older FreeRTOS version, so we should
// actually check whether tskKERNEL_VERSION_MAJOR is larger than.. 7 or 8 ?
@ -90,4 +93,6 @@ protected:
TaskHandle_t handle;
};
#endif
#endif /* FSFW_OSAL_FREERTOS_BINSEMAPHUSINGTASK_H_ */