Skip to content

Commit 47c6c90

Browse files
committed
Replace some portTICK_PERIOD_MS usages in tests
Use safer pdMS_TO_TICKS() macro instead. Keep some portTICK_PERIOD_MS usages to test both implementations.
1 parent 9440795 commit 47c6c90

File tree

33 files changed

+186
-223
lines changed

33 files changed

+186
-223
lines changed

test/Coverity/ConfigFiles/FreeRTOSIPConfig.h

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,9 @@
116116
* maximum allowable send block time prevents prevents a deadlock occurring when
117117
* all the network buffers are in use and the tasks that process (and subsequently
118118
* free) the network buffers are themselves blocked waiting for a network buffer.
119-
* ipconfigMAX_SEND_BLOCK_TIME_TICKS is specified in RTOS ticks. A time in
120-
* milliseconds can be converted to a time in ticks by dividing the time in
121-
* milliseconds by portTICK_PERIOD_MS. */
122-
#define ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS ( 5000U / portTICK_PERIOD_MS )
119+
* ipconfigMAX_SEND_BLOCK_TIME_TICKS is specified in RTOS ticks. A time in
120+
* milliseconds can be converted to a time in ticks using pdMS_TO_TICKS().*/
121+
#define ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS pdMS_TO_TICKS( 5000U )
123122

124123
/* If ipconfigUSE_DHCP is 1 then FreeRTOS+TCP will attempt to retrieve an IP
125124
* address, netmask, DNS server address and gateway address from a DHCP server. If
@@ -144,8 +143,7 @@
144143
* static IP address passed as a parameter to FreeRTOS_IPInit() if the
145144
* re-transmission time interval reaches ipconfigMAXIMUM_DISCOVER_TX_PERIOD without
146145
* a DHCP reply being received. */
147-
#define ipconfigMAXIMUM_DISCOVER_TX_PERIOD \
148-
( 120000U / portTICK_PERIOD_MS )
146+
#define ipconfigMAXIMUM_DISCOVER_TX_PERIOD pdMS_TO_TICKS( 120000U )
149147

150148
/* The ARP cache is a table that maps IP addresses to MAC addresses. The IP
151149
* stack can only send a UDP message to a remove IP address if it knowns the MAC
@@ -156,19 +154,19 @@
156154
* cache then the UDP message is replaced by a ARP message that solicits the
157155
* required MAC address information. ipconfigARP_CACHE_ENTRIES defines the maximum
158156
* number of entries that can exist in the ARP table at any one time. */
159-
#define ipconfigARP_CACHE_ENTRIES 6
157+
#define ipconfigARP_CACHE_ENTRIES 6
160158

161159
/* ARP requests that do not result in an ARP response will be re-transmitted a
162160
* maximum of ipconfigMAX_ARP_RETRANSMISSIONS times before the ARP request is
163161
* aborted. */
164-
#define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 )
162+
#define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 )
165163

166164
/* ipconfigMAX_ARP_AGE defines the maximum time between an entry in the ARP
167165
* table being created or refreshed and the entry being removed because it is stale.
168166
* New ARP requests are sent for ARP cache entries that are nearing their maximum
169167
* age. ipconfigMAX_ARP_AGE is specified in tens of seconds, so a value of 150 is
170168
* equal to 1500 seconds (or 25 minutes). */
171-
#define ipconfigMAX_ARP_AGE 150
169+
#define ipconfigMAX_ARP_AGE 150
172170

173171
/* Implementing FreeRTOS_inet_addr() necessitates the use of string handling
174172
* routines, which are relatively large. To save code space the full
@@ -180,13 +178,13 @@
180178
* ipconfigINCLUDE_FULL_INET_ADDR is set to 1 then both FreeRTOS_inet_addr() and
181179
* FreeRTOS_indet_addr_quick() are available. If ipconfigINCLUDE_FULL_INET_ADDR is
182180
* not set to 1 then only FreeRTOS_indet_addr_quick() is available. */
183-
#define ipconfigINCLUDE_FULL_INET_ADDR 1
181+
#define ipconfigINCLUDE_FULL_INET_ADDR 1
184182

185183
/* ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS defines the total number of network buffer that
186184
* are available to the IP stack. The total number of network buffers is limited
187185
* to ensure the total amount of RAM that can be consumed by the IP stack is capped
188186
* to a pre-determinable value. */
189-
#define ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS 60U
187+
#define ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS 60U
190188

191189
/* A FreeRTOS queue is used to send events from application tasks to the IP
192190
* stack. ipconfigEVENT_QUEUE_LENGTH sets the maximum number of events that can

test/build-combination/AllDisable/FreeRTOSIPConfig.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,9 @@
112112
* maximum allowable send block time prevents prevents a deadlock occurring when
113113
* all the network buffers are in use and the tasks that process (and subsequently
114114
* free) the network buffers are themselves blocked waiting for a network buffer.
115-
* ipconfigMAX_SEND_BLOCK_TIME_TICKS is specified in RTOS ticks. A time in
116-
* milliseconds can be converted to a time in ticks by dividing the time in
117-
* milliseconds by portTICK_PERIOD_MS. */
118-
#define ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS ( 5000U / portTICK_PERIOD_MS )
115+
* ipconfigMAX_SEND_BLOCK_TIME_TICKS is specified in RTOS ticks. A time in
116+
* milliseconds can be converted to a time in ticks using pdMS_TO_TICKS().*/
117+
#define ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS pdMS_TO_TICKS( 5000U )
119118

120119
/* If ipconfigUSE_DHCP is 1 then FreeRTOS+TCP will attempt to retrieve an IP
121120
* address, netmask, DNS server address and gateway address from a DHCP server. If

test/build-combination/AllEnable/FreeRTOSIPConfig.h

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,9 @@
143143
* maximum allowable send block time prevents prevents a deadlock occurring when
144144
* all the network buffers are in use and the tasks that process (and subsequently
145145
* free) the network buffers are themselves blocked waiting for a network buffer.
146-
* ipconfigMAX_SEND_BLOCK_TIME_TICKS is specified in RTOS ticks. A time in
147-
* milliseconds can be converted to a time in ticks by dividing the time in
148-
* milliseconds by portTICK_PERIOD_MS. */
149-
#define ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS ( 5000U / portTICK_PERIOD_MS )
146+
* ipconfigMAX_SEND_BLOCK_TIME_TICKS is specified in RTOS ticks. A time in
147+
* milliseconds can be converted to a time in ticks using pdMS_TO_TICKS().*/
148+
#define ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS pdMS_TO_TICKS( 5000U )
150149

151150
/* If ipconfigUSE_DHCP is 1 then FreeRTOS+TCP will attempt to retrieve an IP
152151
* address, netmask, DNS server address and gateway address from a DHCP server. If
@@ -171,8 +170,7 @@
171170
* static IP address passed as a parameter to FreeRTOS_IPInit() if the
172171
* re-transmission time interval reaches ipconfigMAXIMUM_DISCOVER_TX_PERIOD without
173172
* a DHCP reply being received. */
174-
#define ipconfigMAXIMUM_DISCOVER_TX_PERIOD \
175-
( 120000U / portTICK_PERIOD_MS )
173+
#define ipconfigMAXIMUM_DISCOVER_TX_PERIOD pdMS_TO_TICKS( 120000U )
176174

177175
/* The ARP cache is a table that maps IP addresses to MAC addresses. The IP
178176
* stack can only send a UDP message to a remove IP address if it knowns the MAC
@@ -183,19 +181,19 @@
183181
* cache then the UDP message is replaced by a ARP message that solicits the
184182
* required MAC address information. ipconfigARP_CACHE_ENTRIES defines the maximum
185183
* number of entries that can exist in the ARP table at any one time. */
186-
#define ipconfigARP_CACHE_ENTRIES 6
184+
#define ipconfigARP_CACHE_ENTRIES 6
187185

188186
/* ARP requests that do not result in an ARP response will be re-transmitted a
189187
* maximum of ipconfigMAX_ARP_RETRANSMISSIONS times before the ARP request is
190188
* aborted. */
191-
#define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 )
189+
#define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 )
192190

193191
/* ipconfigMAX_ARP_AGE defines the maximum time between an entry in the ARP
194192
* table being created or refreshed and the entry being removed because it is stale.
195193
* New ARP requests are sent for ARP cache entries that are nearing their maximum
196194
* age. ipconfigMAX_ARP_AGE is specified in tens of seconds, so a value of 150 is
197195
* equal to 1500 seconds (or 25 minutes). */
198-
#define ipconfigMAX_ARP_AGE 150
196+
#define ipconfigMAX_ARP_AGE 150
199197

200198
/* Implementing FreeRTOS_inet_addr() necessitates the use of string handling
201199
* routines, which are relatively large. To save code space the full
@@ -207,13 +205,13 @@
207205
* ipconfigINCLUDE_FULL_INET_ADDR is set to 1 then both FreeRTOS_inet_addr() and
208206
* FreeRTOS_indet_addr_quick() are available. If ipconfigINCLUDE_FULL_INET_ADDR is
209207
* not set to 1 then only FreeRTOS_indet_addr_quick() is available. */
210-
#define ipconfigINCLUDE_FULL_INET_ADDR 1
208+
#define ipconfigINCLUDE_FULL_INET_ADDR 1
211209

212210
/* ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS defines the total number of network buffer that
213211
* are available to the IP stack. The total number of network buffers is limited
214212
* to ensure the total amount of RAM that can be consumed by the IP stack is capped
215213
* to a pre-determinable value. */
216-
#define ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS 60
214+
#define ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS 60
217215

218216
/* A FreeRTOS queue is used to send events from application tasks to the IP
219217
* stack. ipconfigEVENT_QUEUE_LENGTH sets the maximum number of events that can
@@ -287,7 +285,7 @@
287285

288286
/* The windows simulator cannot really simulate MAC interrupts, and needs to
289287
* block occasionally to allow other tasks to run. */
290-
#define configWINDOWS_MAC_INTERRUPT_SIMULATOR_DELAY ( 20 / portTICK_PERIOD_MS )
288+
#define configWINDOWS_MAC_INTERRUPT_SIMULATOR_DELAY pdMS_TO_TICKS( 20 )
291289

292290
/* Advanced only: in order to access 32-bit fields in the IP packets with
293291
* 32-bit memory instructions, all packets will be stored 32-bit-aligned,

test/build-combination/Enable_IPv4/FreeRTOSIPConfig.h

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,9 @@
146146
* maximum allowable send block time prevents prevents a deadlock occurring when
147147
* all the network buffers are in use and the tasks that process (and subsequently
148148
* free) the network buffers are themselves blocked waiting for a network buffer.
149-
* ipconfigMAX_SEND_BLOCK_TIME_TICKS is specified in RTOS ticks. A time in
150-
* milliseconds can be converted to a time in ticks by dividing the time in
151-
* milliseconds by portTICK_PERIOD_MS. */
152-
#define ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS ( 5000U / portTICK_PERIOD_MS )
149+
* ipconfigMAX_SEND_BLOCK_TIME_TICKS is specified in RTOS ticks. A time in
150+
* milliseconds can be converted to a time in ticks using pdMS_TO_TICKS().*/
151+
#define ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS pdMS_TO_TICKS( 5000U )
153152

154153
/* If ipconfigUSE_DHCP is 1 then FreeRTOS+TCP will attempt to retrieve an IP
155154
* address, netmask, DNS server address and gateway address from a DHCP server. If
@@ -174,8 +173,7 @@
174173
* static IP address passed as a parameter to FreeRTOS_IPInit() if the
175174
* re-transmission time interval reaches ipconfigMAXIMUM_DISCOVER_TX_PERIOD without
176175
* a DHCP reply being received. */
177-
#define ipconfigMAXIMUM_DISCOVER_TX_PERIOD \
178-
( 120000U / portTICK_PERIOD_MS )
176+
#define ipconfigMAXIMUM_DISCOVER_TX_PERIOD pdMS_TO_TICKS( 120000U )
179177

180178
/* The ARP cache is a table that maps IP addresses to MAC addresses. The IP
181179
* stack can only send a UDP message to a remove IP address if it knowns the MAC
@@ -186,19 +184,19 @@
186184
* cache then the UDP message is replaced by a ARP message that solicits the
187185
* required MAC address information. ipconfigARP_CACHE_ENTRIES defines the maximum
188186
* number of entries that can exist in the ARP table at any one time. */
189-
#define ipconfigARP_CACHE_ENTRIES 6
187+
#define ipconfigARP_CACHE_ENTRIES 6
190188

191189
/* ARP requests that do not result in an ARP response will be re-transmitted a
192190
* maximum of ipconfigMAX_ARP_RETRANSMISSIONS times before the ARP request is
193191
* aborted. */
194-
#define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 )
192+
#define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 )
195193

196194
/* ipconfigMAX_ARP_AGE defines the maximum time between an entry in the ARP
197195
* table being created or refreshed and the entry being removed because it is stale.
198196
* New ARP requests are sent for ARP cache entries that are nearing their maximum
199197
* age. ipconfigMAX_ARP_AGE is specified in tens of seconds, so a value of 150 is
200198
* equal to 1500 seconds (or 25 minutes). */
201-
#define ipconfigMAX_ARP_AGE 150
199+
#define ipconfigMAX_ARP_AGE 150
202200

203201
/* Implementing FreeRTOS_inet_addr() necessitates the use of string handling
204202
* routines, which are relatively large. To save code space the full
@@ -210,13 +208,13 @@
210208
* ipconfigINCLUDE_FULL_INET_ADDR is set to 1 then both FreeRTOS_inet_addr() and
211209
* FreeRTOS_indet_addr_quick() are available. If ipconfigINCLUDE_FULL_INET_ADDR is
212210
* not set to 1 then only FreeRTOS_indet_addr_quick() is available. */
213-
#define ipconfigINCLUDE_FULL_INET_ADDR 1
211+
#define ipconfigINCLUDE_FULL_INET_ADDR 1
214212

215213
/* ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS defines the total number of network buffer that
216214
* are available to the IP stack. The total number of network buffers is limited
217215
* to ensure the total amount of RAM that can be consumed by the IP stack is capped
218216
* to a pre-determinable value. */
219-
#define ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS 60
217+
#define ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS 60
220218

221219
/* A FreeRTOS queue is used to send events from application tasks to the IP
222220
* stack. ipconfigEVENT_QUEUE_LENGTH sets the maximum number of events that can
@@ -290,7 +288,7 @@
290288

291289
/* The windows simulator cannot really simulate MAC interrupts, and needs to
292290
* block occasionally to allow other tasks to run. */
293-
#define configWINDOWS_MAC_INTERRUPT_SIMULATOR_DELAY ( 20 / portTICK_PERIOD_MS )
291+
#define configWINDOWS_MAC_INTERRUPT_SIMULATOR_DELAY pdMS_TO_TICKS( 20 )
294292

295293
/* Advanced only: in order to access 32-bit fields in the IP packets with
296294
* 32-bit memory instructions, all packets will be stored 32-bit-aligned,

test/build-combination/Enable_IPv4_IPv6/FreeRTOSIPConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@
290290

291291
/* The windows simulator cannot really simulate MAC interrupts, and needs to
292292
* block occasionally to allow other tasks to run. */
293-
#define configWINDOWS_MAC_INTERRUPT_SIMULATOR_DELAY ( 20 / portTICK_PERIOD_MS )
293+
#define configWINDOWS_MAC_INTERRUPT_SIMULATOR_DELAY pdMS_TO_TICKS( 20 )
294294

295295
/* Advanced only: in order to access 32-bit fields in the IP packets with
296296
* 32-bit memory instructions, all packets will be stored 32-bit-aligned,

test/build-combination/Enable_IPv4_TCP/FreeRTOSIPConfig.h

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,9 @@
146146
* maximum allowable send block time prevents prevents a deadlock occurring when
147147
* all the network buffers are in use and the tasks that process (and subsequently
148148
* free) the network buffers are themselves blocked waiting for a network buffer.
149-
* ipconfigMAX_SEND_BLOCK_TIME_TICKS is specified in RTOS ticks. A time in
150-
* milliseconds can be converted to a time in ticks by dividing the time in
151-
* milliseconds by portTICK_PERIOD_MS. */
152-
#define ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS ( 5000U / portTICK_PERIOD_MS )
149+
* ipconfigMAX_SEND_BLOCK_TIME_TICKS is specified in RTOS ticks. A time in
150+
* milliseconds can be converted to a time in ticks using pdMS_TO_TICKS().*/
151+
#define ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS pdMS_TO_TICKS( 5000U )
153152

154153
/* If ipconfigUSE_DHCP is 1 then FreeRTOS+TCP will attempt to retrieve an IP
155154
* address, netmask, DNS server address and gateway address from a DHCP server. If
@@ -174,8 +173,7 @@
174173
* static IP address passed as a parameter to FreeRTOS_IPInit() if the
175174
* re-transmission time interval reaches ipconfigMAXIMUM_DISCOVER_TX_PERIOD without
176175
* a DHCP reply being received. */
177-
#define ipconfigMAXIMUM_DISCOVER_TX_PERIOD \
178-
( 120000U / portTICK_PERIOD_MS )
176+
#define ipconfigMAXIMUM_DISCOVER_TX_PERIOD pdMS_TO_TICKS( 120000U )
179177

180178
/* The ARP cache is a table that maps IP addresses to MAC addresses. The IP
181179
* stack can only send a UDP message to a remove IP address if it knowns the MAC
@@ -186,19 +184,19 @@
186184
* cache then the UDP message is replaced by a ARP message that solicits the
187185
* required MAC address information. ipconfigARP_CACHE_ENTRIES defines the maximum
188186
* number of entries that can exist in the ARP table at any one time. */
189-
#define ipconfigARP_CACHE_ENTRIES 6
187+
#define ipconfigARP_CACHE_ENTRIES 6
190188

191189
/* ARP requests that do not result in an ARP response will be re-transmitted a
192190
* maximum of ipconfigMAX_ARP_RETRANSMISSIONS times before the ARP request is
193191
* aborted. */
194-
#define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 )
192+
#define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 )
195193

196194
/* ipconfigMAX_ARP_AGE defines the maximum time between an entry in the ARP
197195
* table being created or refreshed and the entry being removed because it is stale.
198196
* New ARP requests are sent for ARP cache entries that are nearing their maximum
199197
* age. ipconfigMAX_ARP_AGE is specified in tens of seconds, so a value of 150 is
200198
* equal to 1500 seconds (or 25 minutes). */
201-
#define ipconfigMAX_ARP_AGE 150
199+
#define ipconfigMAX_ARP_AGE 150
202200

203201
/* Implementing FreeRTOS_inet_addr() necessitates the use of string handling
204202
* routines, which are relatively large. To save code space the full
@@ -210,13 +208,13 @@
210208
* ipconfigINCLUDE_FULL_INET_ADDR is set to 1 then both FreeRTOS_inet_addr() and
211209
* FreeRTOS_indet_addr_quick() are available. If ipconfigINCLUDE_FULL_INET_ADDR is
212210
* not set to 1 then only FreeRTOS_indet_addr_quick() is available. */
213-
#define ipconfigINCLUDE_FULL_INET_ADDR 1
211+
#define ipconfigINCLUDE_FULL_INET_ADDR 1
214212

215213
/* ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS defines the total number of network buffer that
216214
* are available to the IP stack. The total number of network buffers is limited
217215
* to ensure the total amount of RAM that can be consumed by the IP stack is capped
218216
* to a pre-determinable value. */
219-
#define ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS 60
217+
#define ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS 60
220218

221219
/* A FreeRTOS queue is used to send events from application tasks to the IP
222220
* stack. ipconfigEVENT_QUEUE_LENGTH sets the maximum number of events that can

test/build-combination/Enable_IPv6/FreeRTOSIPConfig.h

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@
174174
* static IP address passed as a parameter to FreeRTOS_IPInit() if the
175175
* re-transmission time interval reaches ipconfigMAXIMUM_DISCOVER_TX_PERIOD without
176176
* a DHCP reply being received. */
177-
#define ipconfigMAXIMUM_DISCOVER_TX_PERIOD \
178-
( 120000U / portTICK_PERIOD_MS )
177+
#define ipconfigMAXIMUM_DISCOVER_TX_PERIOD pdMS_TO_TICKS( 120000U )
179178

180179
/* The ARP cache is a table that maps IP addresses to MAC addresses. The IP
181180
* stack can only send a UDP message to a remove IP address if it knowns the MAC
@@ -186,19 +185,19 @@
186185
* cache then the UDP message is replaced by a ARP message that solicits the
187186
* required MAC address information. ipconfigARP_CACHE_ENTRIES defines the maximum
188187
* number of entries that can exist in the ARP table at any one time. */
189-
#define ipconfigARP_CACHE_ENTRIES 6
188+
#define ipconfigARP_CACHE_ENTRIES 6
190189

191190
/* ARP requests that do not result in an ARP response will be re-transmitted a
192191
* maximum of ipconfigMAX_ARP_RETRANSMISSIONS times before the ARP request is
193192
* aborted. */
194-
#define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 )
193+
#define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 )
195194

196195
/* ipconfigMAX_ARP_AGE defines the maximum time between an entry in the ARP
197196
* table being created or refreshed and the entry being removed because it is stale.
198197
* New ARP requests are sent for ARP cache entries that are nearing their maximum
199198
* age. ipconfigMAX_ARP_AGE is specified in tens of seconds, so a value of 150 is
200199
* equal to 1500 seconds (or 25 minutes). */
201-
#define ipconfigMAX_ARP_AGE 150
200+
#define ipconfigMAX_ARP_AGE 150
202201

203202
/* Implementing FreeRTOS_inet_addr() necessitates the use of string handling
204203
* routines, which are relatively large. To save code space the full
@@ -210,13 +209,13 @@
210209
* ipconfigINCLUDE_FULL_INET_ADDR is set to 1 then both FreeRTOS_inet_addr() and
211210
* FreeRTOS_indet_addr_quick() are available. If ipconfigINCLUDE_FULL_INET_ADDR is
212211
* not set to 1 then only FreeRTOS_indet_addr_quick() is available. */
213-
#define ipconfigINCLUDE_FULL_INET_ADDR 1
212+
#define ipconfigINCLUDE_FULL_INET_ADDR 1
214213

215214
/* ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS defines the total number of network buffer that
216215
* are available to the IP stack. The total number of network buffers is limited
217216
* to ensure the total amount of RAM that can be consumed by the IP stack is capped
218217
* to a pre-determinable value. */
219-
#define ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS 60
218+
#define ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS 60
220219

221220
/* A FreeRTOS queue is used to send events from application tasks to the IP
222221
* stack. ipconfigEVENT_QUEUE_LENGTH sets the maximum number of events that can
@@ -290,7 +289,7 @@
290289

291290
/* The windows simulator cannot really simulate MAC interrupts, and needs to
292291
* block occasionally to allow other tasks to run. */
293-
#define configWINDOWS_MAC_INTERRUPT_SIMULATOR_DELAY ( 20 / portTICK_PERIOD_MS )
292+
#define configWINDOWS_MAC_INTERRUPT_SIMULATOR_DELAY pdMS_TO_TICKS( 20 )
294293

295294
/* Advanced only: in order to access 32-bit fields in the IP packets with
296295
* 32-bit memory instructions, all packets will be stored 32-bit-aligned,

0 commit comments

Comments
 (0)