Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
HTRamsey committed Feb 6, 2024
1 parent 59097af commit 1f91f80
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions source/include/FreeRTOSIPConfigDefaults.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#ifndef FREERTOS_IP_CONFIG_DEFAULTS_H
#define FREERTOS_IP_CONFIG_DEFAULTS_H

#include <cstdint>
#ifndef FREERTOS_CONFIG_H
#error FreeRTOSConfig.h has not been included yet
#endif
Expand Down Expand Up @@ -491,7 +492,7 @@ STATIC_ASSERT( ipconfigRA_IP_TEST_TIME_OUT_MSEC <= ( portMAX_DELAY * portTICK_PE
#define ipconfigMAX_IP_TASK_SLEEP_TIME pdMS_TO_TICKS( 10000 )
#endif

STATIC_ASSERT( ipconfigMAX_IP_TASK_SLEEP_TIME >= 0L );
STATIC_ASSERT( ( int64_t ) ipconfigMAX_IP_TASK_SLEEP_TIME >= 0 );

STATIC_ASSERT( ipconfigMAX_IP_TASK_SLEEP_TIME <= portMAX_DELAY );

Expand Down Expand Up @@ -1765,7 +1766,7 @@ STATIC_ASSERT( ipconfigTCP_KEEP_ALIVE_INTERVAL <= ( portMAX_DELAY / configTICK_R
#define ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS pdMS_TO_TICKS( 20 )
#endif

STATIC_ASSERT( ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS >= 0L );
STATIC_ASSERT( ( int64_t ) ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS >= 0 );

STATIC_ASSERT( ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS <= portMAX_DELAY );

Expand Down Expand Up @@ -1956,7 +1957,7 @@ STATIC_ASSERT( ipconfigUDP_MAX_SEND_BLOCK_TIME_TICKS <= portMAX_DELAY );
#define ipconfigSOCK_DEFAULT_RECEIVE_BLOCK_TIME portMAX_DELAY
#endif

STATIC_ASSERT( ipconfigSOCK_DEFAULT_RECEIVE_BLOCK_TIME >= 0L );
STATIC_ASSERT( ( int64_t ) ipconfigSOCK_DEFAULT_RECEIVE_BLOCK_TIME >= 0 );

STATIC_ASSERT( ipconfigSOCK_DEFAULT_RECEIVE_BLOCK_TIME <= portMAX_DELAY );

Expand Down Expand Up @@ -1986,7 +1987,7 @@ STATIC_ASSERT( ipconfigSOCK_DEFAULT_RECEIVE_BLOCK_TIME <= portMAX_DELAY );
#define ipconfigSOCK_DEFAULT_SEND_BLOCK_TIME portMAX_DELAY
#endif

STATIC_ASSERT( ipconfigSOCK_DEFAULT_SEND_BLOCK_TIME >= 0L );
STATIC_ASSERT( ( int64_t ) ipconfigSOCK_DEFAULT_SEND_BLOCK_TIME >= 0 );

STATIC_ASSERT( ipconfigSOCK_DEFAULT_SEND_BLOCK_TIME <= portMAX_DELAY );

Expand Down Expand Up @@ -2377,7 +2378,7 @@ STATIC_ASSERT( ipconfigSOCK_DEFAULT_SEND_BLOCK_TIME <= portMAX_DELAY );
#endif
#endif

STATIC_ASSERT( ipconfigMAXIMUM_DISCOVER_TX_PERIOD >= 0L );
STATIC_ASSERT( ( int64_t ) ipconfigMAXIMUM_DISCOVER_TX_PERIOD >= 0 );

STATIC_ASSERT( ipconfigMAXIMUM_DISCOVER_TX_PERIOD <= portMAX_DELAY );

Expand Down Expand Up @@ -2577,7 +2578,7 @@ STATIC_ASSERT( ipconfigMAXIMUM_DISCOVER_TX_PERIOD <= portMAX_DELAY );
#define ipconfigDNS_RECEIVE_BLOCK_TIME_TICKS pdMS_TO_TICKS( 5000 )
#endif

STATIC_ASSERT( ipconfigDNS_RECEIVE_BLOCK_TIME_TICKS >= 0L );
STATIC_ASSERT( ( int64_t ) ipconfigDNS_RECEIVE_BLOCK_TIME_TICKS >= 0 );

STATIC_ASSERT( ipconfigDNS_RECEIVE_BLOCK_TIME_TICKS <= portMAX_DELAY );

Expand All @@ -2602,7 +2603,7 @@ STATIC_ASSERT( ipconfigDNS_RECEIVE_BLOCK_TIME_TICKS <= portMAX_DELAY );
#define ipconfigDNS_SEND_BLOCK_TIME_TICKS pdMS_TO_TICKS( 500 )
#endif

STATIC_ASSERT( ipconfigDNS_SEND_BLOCK_TIME_TICKS >= 0L );
STATIC_ASSERT( ( int64_t ) ipconfigDNS_SEND_BLOCK_TIME_TICKS >= 0 );

STATIC_ASSERT( ipconfigDNS_SEND_BLOCK_TIME_TICKS <= portMAX_DELAY );

Expand Down

0 comments on commit 1f91f80

Please sign in to comment.