From 06b4e233ec768d3d460571915dd0eb492c91585b Mon Sep 17 00:00:00 2001 From: Paul Pan Date: Wed, 1 Feb 2023 16:54:10 +0800 Subject: [PATCH] Fix bl808 types --- .../portable/bl/bl808/FreeRTOS_POSIX_portable.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/FreeRTOS-Plus-POSIX/include/portable/bl/bl808/FreeRTOS_POSIX_portable.h b/FreeRTOS-Plus-POSIX/include/portable/bl/bl808/FreeRTOS_POSIX_portable.h index 1022f4b..d1e94f0 100755 --- a/FreeRTOS-Plus-POSIX/include/portable/bl/bl808/FreeRTOS_POSIX_portable.h +++ b/FreeRTOS-Plus-POSIX/include/portable/bl/bl808/FreeRTOS_POSIX_portable.h @@ -31,7 +31,17 @@ #ifndef _FREERTOS_POSIX_PORTABLE_H_ #define _FREERTOS_POSIX_PORTABLE_H_ -/* This port uses the defaults in FreeRTOS_POSIX_portable_default.h, so this - * file is empty. */ +/* Xuantie Toolchain defines the following types. */ +#define posixconfigENABLE_CLOCK_T 0 +#define posixconfigENABLE_CLOCKID_T 0 +#define posixconfigENABLE_MODE_T 0 +#define posixconfigENABLE_SSIZE_T 0 +#define posixconfigENABLE_TIME_T 0 +#define posixconfigENABLE_TIMESPEC 0 +#define posixconfigENABLE_ITIMERSPEC 0 + +/* Hacking on GNU types */ +#define __timer_t_defined +#define posixconfigENABLE_TIMER_T 1 #endif /* _FREERTOS_POSIX_PORTABLE_H_ */