Skip to content

Commit e4a479d

Browse files
author
Holden
committed
Organize and add to deprecated definitions
1 parent 73010d8 commit e4a479d

File tree

2 files changed

+47
-30
lines changed

2 files changed

+47
-30
lines changed

source/include/FreeRTOSIPConfigDefaults.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
#endif
4545

4646
#include "FreeRTOS_errno_TCP.h"
47+
#include "FreeRTOSIPDeprecatedDefinitions.h"
4748

4849
/*===========================================================================*/
4950

source/include/FreeRTOSIPDeprecatedDefinitions.h

Lines changed: 46 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -33,46 +33,58 @@
3333
#ifndef FREERTOS_IP_DEPRECATED_DEFINITIONS_H
3434
#define FREERTOS_IP_DEPRECATED_DEFINITIONS_H
3535

36-
#ifdef tcpconfigIP_TIME_TO_LIVE
37-
#error Now called: ipconfigTCP_TIME_TO_LIVE
36+
#ifndef FREERTOS_IP_CONFIG_DEFAULTS_H
37+
#error FreeRTOSIPConfigDefaults.h has not been included yet
3838
#endif
3939

40-
#ifdef updconfigIP_TIME_TO_LIVE
41-
#error Now called: ipconfigUDP_TIME_TO_LIVE
40+
#ifdef dnsMAX_REQUEST_ATTEMPTS
41+
#error Now called: ipconfigDNS_REQUEST_ATTEMPTS
4242
#endif
4343

44-
#ifdef ipFILLER_SIZE
45-
#error Now called: ipconfigPACKET_FILLER_SIZE
44+
#ifdef FreeRTOS_lprintf
45+
#error Now called: FreeRTOS_debug_printf
4646
#endif
4747

48-
#ifdef dnsMAX_REQUEST_ATTEMPTS
49-
#error Now called: ipconfigDNS_REQUEST_ATTEMPTS
48+
#ifdef HAS_TX_CRC_OFFLOADING
49+
#error Now called: ipconfigHAS_TX_CRC_OFFLOADING
5050
#endif
5151

52-
#ifdef ipconfigUDP_TASK_PRIORITY
53-
#error Now called: ipconfigIP_TASK_PRIORITY
52+
#ifdef HAS_RX_CRC_OFFLOADING
53+
#error Now called: ipconfigHAS_RX_CRC_OFFLOADING, Not used
5454
#endif
5555

56-
#ifdef ipconfigUDP_TASK_STACK_SIZE_WORDS
57-
#error Now called: ipconfigIP_TASK_STACK_SIZE_WORDS
56+
#ifdef ipconfigBUFFER_ALLOC_FIXED_SIZE
57+
#error ipconfigBUFFER_ALLOC_FIXED_SIZE was dropped and replaced by a const value, declared in BufferAllocation[12].c
58+
#endif
59+
60+
#ifdef ipconfigDHCP_USES_USER_HOOK
61+
#error ipconfigDHCP_USES_USER_HOOK has been replaced by ipconfigUSE_DHCP_HOOK
5862
#endif
5963

6064
#ifdef ipconfigDRIVER_INCLUDED_RX_IP_FILTERING
6165
#error Now called: ipconfigETHERNET_DRIVER_FILTERS_PACKETS
6266
#endif
6367

68+
#ifdef ipconfigHAS_INLINE_FUNCTIONS
69+
#error ipconfigHAS_INLINE_FUNCTIONS is not used
70+
#endif
71+
6472
#ifdef ipconfigMAX_SEND_BLOCK_TIME_TICKS
6573
#error Now called: ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS
6674
#endif
6775

68-
#ifdef ipconfigUSE_RECEIVE_CONNECT_CALLBACKS
69-
#error Now called: ipconfigUSE_CALLBACKS
76+
#ifdef ipconfigNIC_SEND_PASSES_DMA
77+
#error Now called: ipconfigZERO_COPY_TX_DRIVER
7078
#endif
7179

7280
#ifdef ipconfigNUM_NETWORK_BUFFERS
7381
#error Now called: ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS
7482
#endif
7583

84+
#ifdef ipconfigRAND32
85+
#error ipconfigRAND32 has been replaced by xApplicationGetRandomNumber( uint32_t *pulValue )
86+
#endif
87+
7688
#ifdef ipconfigTCP_HANG_PROT
7789
#error Now called: ipconfigTCP_HANG_PROTECTION
7890
#endif
@@ -81,36 +93,40 @@
8193
#error Now called: ipconfigTCP_HANG_PROTECTION_TIME
8294
#endif
8395

84-
#ifdef FreeRTOS_lprintf
85-
#error Now called: FreeRTOS_debug_printf
96+
#ifdef ipconfigTCP_RX_BUF_LEN
97+
#error ipconfigTCP_RX_BUF_LEN is Now called ipconfigTCP_RX_BUFFER_LENGTH
8698
#endif
8799

88-
#ifdef ipconfigBUFFER_ALLOC_FIXED_SIZE
89-
#error ipconfigBUFFER_ALLOC_FIXED_SIZE was dropped and replaced by a const value, declared in BufferAllocation[12].c
100+
#ifdef ipconfigTCP_TX_BUF_LEN
101+
#error ipconfigTCP_TX_BUF_LEN is Now called ipconfigTCP_TX_BUFFER_LENGTH
90102
#endif
91103

92-
#ifdef ipconfigNIC_SEND_PASSES_DMA
93-
#error Now called: ipconfigZERO_COPY_TX_DRIVER
104+
#ifdef ipconfigUDP_TASK_PRIORITY
105+
#error Now called: ipconfigIP_TASK_PRIORITY
94106
#endif
95107

96-
#ifdef HAS_TX_CRC_OFFLOADING
97-
#error Now called: ipconfigHAS_TX_CRC_OFFLOADING
108+
#ifdef ipconfigUDP_TASK_STACK_SIZE_WORDS
109+
#error Now called: ipconfigIP_TASK_STACK_SIZE_WORDS
98110
#endif
99111

100-
#ifdef HAS_RX_CRC_OFFLOADING
101-
#error Now called: ipconfigHAS_RX_CRC_OFFLOADING
112+
#ifdef ipconfigUSE_RECEIVE_CONNECT_CALLBACKS
113+
#error Now called: ipconfigUSE_CALLBACKS
102114
#endif
103115

104-
#ifdef ipconfigTCP_RX_BUF_LEN
105-
#error ipconfigTCP_RX_BUF_LEN is Now called ipconfigTCP_RX_BUFFER_LENGTH
116+
#ifdef ipconfigUSE_TCP_TIMESTAMPS
117+
#error ipconfigUSE_TCP_TIMESTAMPS is not used
106118
#endif
107119

108-
#ifdef ipconfigTCP_TX_BUF_LEN
109-
#error ipconfigTCP_TX_BUF_LEN is Now called ipconfigTCP_TX_BUFFER_LENGTH
120+
#ifdef ipFILLER_SIZE
121+
#error Now called: ipconfigPACKET_FILLER_SIZE
110122
#endif
111123

112-
#ifdef ipconfigDHCP_USES_USER_HOOK
113-
#error ipconfigDHCP_USES_USER_HOOK and its associated callback have been superseded - see http: /*www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/TCP_IP_Configuration.html#ipconfigUSE_DHCP_HOOK */
124+
#ifdef tcpconfigIP_TIME_TO_LIVE
125+
#error Now called: ipconfigTCP_TIME_TO_LIVE
126+
#endif
127+
128+
#ifdef updconfigIP_TIME_TO_LIVE
129+
#error Now called: ipconfigUDP_TIME_TO_LIVE
114130
#endif
115131

116132
#endif /* FREERTOS_IP_DEPRECATED_DEFINITIONS_H */

0 commit comments

Comments
 (0)