FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [April 2017 Threads]
Dear all,
I am porting FreeRTOS+TCP for my custome hardware, I have take source from FreeRTOS+TCP. Currently working on NetworkInterface. Its about to finish.
After that when my compilation continues it have error.
error: 'pdFREERTOSERRNOEINTR' undeclared (first use in this function)
FreeRTOS version 8.2.3 and FreeRTOS-Plus-TCP as lab download.
Please let me know any info about fixing this error.
Hello Sachin,
After that when my compilation continues it have error.
error: 'pdFREERTOSERRNOEINTR' undeclared (first use in this function)
The FreeRTOS ERRNO numbers are defined in two places:
● source/include/projdefs.h
● FreeRTOS-Plus-TCP/include/FreeRTOSerrnoTCP.h
Eventually the FreeRTOS ERRNO defines should be placed in projdefs.h
only. But in order to avoid missing declarations, a copy is also placed in FreeRTOS_errno_TCP.h
.
ERRNO_EINTR
was one of the latest ERRNO's to be added, and it might be that it is not found in the projdefs.h
of 8.2.3. and earlier.
You can simply add it:
~~~
#define pdFREERTOSERRNONONE 0 /* No errors /
#define pdFREERTOSERRNOENOENT 2 / No such file or directory /
+#define pdFREERTOSERRNOEINTR 4 / Interrupted system call /
#define pdFREERTOSERRNOEIO 5 / I/O error */
~~~
ERRNO_EINTR
was introduced to support the interruption of blocking API's recvfrom()
, recv()
, and select()
.
~~~
if( ipconfigSUPPORT_SIGNALS != 0 )
/* Send a signal to the task which reads from this socket. */
BaseType_t FreeRTOS_SignalSocket( Socket_t xSocket )
{
}
endif /* ipconfigSUPPORT_SIGNALS */
~~~
In case an API was interrupted from outside, it will return -pdFREERTOS_ERRNO_EINTR
.
Thanks for information. Compilation continued, This error got fixed.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.