Skip to content

Commit fd8b869

Browse files
author
Holden
committed
Kernel version check
1 parent d53e812 commit fd8b869

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

source/include/FreeRTOSIPConfigDefaults.h

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,11 @@
7878
*
7979
* Address family not supported by protocol.
8080
*
81-
* Note: To be removed when added to projdefs.h in FreeRTOS-Kernel
81+
* Note: Now included in FreeRTOS-Kernel/projdefs.h, so this serves as a
82+
* temporary kernel version check. To be removed in a future version.
8283
*/
8384
#ifndef pdFREERTOS_ERRNO_EAFNOSUPPORT
84-
#define pdFREERTOS_ERRNO_EAFNOSUPPORT 97
85+
#error Missing pdFREERTOS_ERRNO_EAFNOSUPPORT definition, please update FreeRTOS-Kernel
8586
#endif
8687

8788
/*---------------------------------------------------------------------------*/
@@ -531,17 +532,6 @@
531532
* contain. For normal Ethernet V2 frames the maximum MTU is 1500 (although a
532533
* lower number may be required for Internet routing). Setting a lower value
533534
* can save RAM, depending on the buffer management scheme used.
534-
*
535-
* If ipconfigNETWORK_MTU is not defined then the following defaults will be
536-
* applied:
537-
*
538-
* #ifndef ipconfigNETWORK_MTU
539-
* #ifdef( ipconfigUSE_TCP_WIN == 1 )
540-
* #define ipconfigNETWORK_MTU ( 1526 )
541-
* #else
542-
* #define ipconfigNETWORK_MTU ( 1514 )
543-
* #endif
544-
* #endif
545535
*/
546536
#ifndef ipconfigNETWORK_MTU
547537
#define ipconfigNETWORK_MTU 1500U

0 commit comments

Comments
 (0)