Skip to content

Commit

Permalink
FreeRTOS_IP.h: Fix build error introduced by 55658e1 in FreeRTOS-Kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbartell committed Mar 15, 2023
1 parent 4a22215 commit 9066f61
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 8 deletions.
28 changes: 21 additions & 7 deletions source/include/FreeRTOS_IP.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,28 @@ uint32_t FreeRTOS_round_down( uint32_t a,
#define pdMS_TO_MIN_TICKS( xTimeInMs ) ipMS_TO_MIN_TICKS( xTimeInMs )

#ifndef pdTRUE_SIGNED
/* Temporary solution: eventually the defines below will appear in 'Source\include\projdefs.h' */
#define pdTRUE_SIGNED pdTRUE
#define pdFALSE_SIGNED pdFALSE
#define pdTRUE_UNSIGNED ( 1U )
#define pdTRUE_SIGNED pdTRUE
#endif /* pdTRUE_SIGNED */

#ifndef pdFALSE_SIGNED
#define pdFALSE_SIGNED pdFALSE
#endif /* pdFALSE_SIGNED */

#ifndef pdTRUE_UNSIGNED
#define pdTRUE_UNSIGNED ( 1U )
#endif /* pdTRUE_UNSIGNED */

#ifndef pdFALSE_UNSIGNED
#define pdFALSE_UNSIGNED ( 0U )
#define ipTRUE_BOOL ( 1 == 1 )
#define ipFALSE_BOOL ( 1 == 2 )
#endif
#endif /* pdFALSE_UNSIGNED */

#ifndef ipTRUE_BOOL
#define ipTRUE_BOOL ( 1 == 1 )
#endif /* ipTRUE_BOOL */

#ifndef ipFALSE_BOOL
#define ipFALSE_BOOL ( 1 == 2 )
#endif /* ipFALSE_BOOL */

/*
* FULL, UP-TO-DATE AND MAINTAINED REFERENCE DOCUMENTATION FOR ALL THESE
Expand Down
14 changes: 13 additions & 1 deletion test/unit-test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,20 @@ foreach( file ${TCP_INCLUDES} )
execute_process( COMMAND mv ${CMAKE_BINARY_DIR}/Annexed_TCP/${MODIFIED_FILE}_tmp2.h ${CMAKE_BINARY_DIR}/Annexed_TCP/${MODIFIED_FILE}_tmp.h )
endif()



# Use this tool to process all conditional declarations.
execute_process( COMMAND unifdefall -U${Guard} -USEND_REPEATED_COUNT -UpdTRUE_SIGNED -UFreeRTOS_htonl -D__COVERITY__ -DTEST -I ${MODULE_ROOT_DIR}/tools/CMock/vendor/unity/src
execute_process( COMMAND unifdefall -U${Guard} -USEND_REPEATED_COUNT
-UpdTRUE_SIGNED
-UpdFALSE_SIGNED
-UpdTRUE_UNSIGNED
-UpdFALSE_UNSIGNED
-UipTRUE_BOOL
-UipFALSE_BOOL
-UFreeRTOS_htonl
-D__COVERITY__
-DTEST
-I ${MODULE_ROOT_DIR}/tools/CMock/vendor/unity/src
-I ${MODULE_ROOT_DIR}/test/FreeRTOS-Kernel/include
-I ${UNIT_TEST_DIR}/ConfigFiles
-I ${MODULE_ROOT_DIR}/source/include
Expand Down

0 comments on commit 9066f61

Please sign in to comment.