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_ */