aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gos/freertos.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gos/freertos.h b/src/gos/freertos.h
index ccda4cbd..34ef548e 100644
--- a/src/gos/freertos.h
+++ b/src/gos/freertos.h
@@ -24,6 +24,18 @@
/* Type definitions */
/*===========================================================================*/
+/* Additional types are required when FreeRTOS 7.x is used */
+#if !defined(tskKERNEL_VERSION_MAJOR) && !tskKERNEL_VERSION_MAJOR == 8
+ typedef signed char int8_t
+ typedef unsigned char uint8_t
+ typedef signed int int16_t
+ typedef unsigned int uint16_t
+ typedef signed long int int32_t
+ typedef unsigned long int uint32_t
+ typedef signed long long int int64_t
+ typedef unsigned long long int uint64_t
+#endif
+
/**
* bool_t,
* int8_t, uint8_t,