308308 * Type: TickType_t
309309 * Unit: milliseconds
310310 * Minimum: 0
311- * Maximum: portMAX_DELAY * portTICK_PERIOD_MS
311+ * Maximum: ( portMAX_DELAY / configTICK_RATE_HZ ) * 1000
312312 *
313313 * Sets the timeout to wait for a response to a router
314314 * solicitation message.
322322 #error ipconfigRA_SEARCH_TIME_OUT_MSEC must be at least 0
323323#endif
324324
325- STATIC_ASSERT ( ipconfigRA_SEARCH_TIME_OUT_MSEC <= ( portMAX_DELAY * portTICK_PERIOD_MS ) );
325+ STATIC_ASSERT ( pdMS_TO_TICKS ( ipconfigRA_SEARCH_TIME_OUT_MSEC ) <= portMAX_DELAY );
326326
327327/*---------------------------------------------------------------------------*/
328328
@@ -357,7 +357,7 @@ STATIC_ASSERT( ipconfigRA_SEARCH_TIME_OUT_MSEC <= ( portMAX_DELAY * portTICK_PER
357357 * Type: TickType_t
358358 * Unit: milliseconds
359359 * Minimum: 0
360- * Maximum: portMAX_DELAY * portTICK_PERIOD_MS
360+ * Maximum: ( portMAX_DELAY / configTICK_RATE_HZ ) * 1000
361361 *
362362 * Sets the timeout to wait for a response to a neighbour solicitation message.
363363 */
@@ -370,7 +370,7 @@ STATIC_ASSERT( ipconfigRA_SEARCH_TIME_OUT_MSEC <= ( portMAX_DELAY * portTICK_PER
370370 #error ipconfigRA_IP_TEST_TIME_OUT_MSEC must be at least 0
371371#endif
372372
373- STATIC_ASSERT ( ipconfigRA_IP_TEST_TIME_OUT_MSEC <= ( portMAX_DELAY * portTICK_PERIOD_MS ) );
373+ STATIC_ASSERT ( pdMS_TO_TICKS ( ipconfigRA_IP_TEST_TIME_OUT_MSEC ) <= portMAX_DELAY );
374374
375375/*---------------------------------------------------------------------------*/
376376
@@ -1726,8 +1726,7 @@ STATIC_ASSERT( ipconfigTCP_KEEP_ALIVE_INTERVAL <= ( portMAX_DELAY / configTICK_R
17261726 * network buffers are themselves blocked waiting for a network buffer.
17271727 *
17281728 * ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS is specified in RTOS ticks. A time in
1729- * milliseconds can be converted to a time in ticks by dividing the time in
1730- * milliseconds by portTICK_PERIOD_MS.
1729+ * milliseconds can be converted to a time in ticks using pdMS_TO_TICKS().
17311730 */
17321731
17331732#ifndef ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS
0 commit comments