Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

error: 'pdFREERTOS_ERRNO_EINTR' undeclared (first use in this function)

Posted by sachingole on April 26, 2017

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.


error: 'pdFREERTOS_ERRNO_EINTR' undeclared (first use in this function)

Posted by heinbali01 on April 26, 2017

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.


error: 'pdFREERTOS_ERRNO_EINTR' undeclared (first use in this function)

Posted by sachingole on April 26, 2017

Thanks for information. Compilation continued, This error got fixed.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists