Skip to content

Commit ac0434a

Browse files
author
Holden
committed
Remove FreeRTOS_errno_TCP.h
1 parent e4a479d commit ac0434a

File tree

4 files changed

+17
-51
lines changed

4 files changed

+17
-51
lines changed

source/FreeRTOS_IP_Utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ uint16_t usGenerateChecksum( uint16_t usSum,
13091309

13101310
/**
13111311
* @brief Utility function: Convert error number to a human readable
1312-
* string. Declaration in FreeRTOS_errno_TCP.h.
1312+
* string.
13131313
*
13141314
* @param[in] xErrnum: The error number.
13151315
* @param[in] pcBuffer: Buffer big enough to be filled with the human readable message.

source/include/FreeRTOSIPConfigDefaults.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,19 @@
4343
#error FreeRTOSIPConfig.h has not been included yet
4444
#endif
4545

46-
#include "FreeRTOS_errno_TCP.h"
4746
#include "FreeRTOSIPDeprecatedDefinitions.h"
4847

48+
/*
49+
* pdFREERTOS_ERRNO_EAFNOSUPPORT
50+
*
51+
* Address family not supported by protocol.
52+
*
53+
* Note: To be removed when added to projdefs.h in FreeRTOS-Kernel
54+
*/
55+
#ifndef pdFREERTOS_ERRNO_EAFNOSUPPORT
56+
#define pdFREERTOS_ERRNO_EAFNOSUPPORT 97
57+
#endif
58+
4959
/*===========================================================================*/
5060

5161
/*===========================================================================*/

source/include/FreeRTOS_IP.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,11 @@ typedef struct xIP_TIMER
247247
#define FreeRTOS_ntohs( x ) FreeRTOS_htons( x )
248248
#define FreeRTOS_ntohl( x ) FreeRTOS_htonl( x )
249249

250+
/* Translate a pdFREERTOS_ERRNO code to a human readable string. */
251+
const char * FreeRTOS_strerror_r( BaseType_t xErrnum,
252+
char * pcBuffer,
253+
size_t uxLength );
254+
250255
/* Some simple helper functions. */
251256
int32_t FreeRTOS_max_int32( int32_t a,
252257
int32_t b );

source/include/FreeRTOS_errno_TCP.h

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)