Skip to content

Commit d4d9d86

Browse files
authored
Merge branch 'main' into main
2 parents 1068140 + 176b24b commit d4d9d86

File tree

4 files changed

+844
-9
lines changed

4 files changed

+844
-9
lines changed

source/include/FreeRTOS_IP.h

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,28 @@ uint32_t FreeRTOS_round_down( uint32_t a,
276276
#define pdMS_TO_MIN_TICKS( xTimeInMs ) ipMS_TO_MIN_TICKS( xTimeInMs )
277277

278278
#ifndef pdTRUE_SIGNED
279-
/* Temporary solution: eventually the defines below will appear in 'Source\include\projdefs.h' */
280-
#define pdTRUE_SIGNED pdTRUE
281-
#define pdFALSE_SIGNED pdFALSE
282-
#define pdTRUE_UNSIGNED ( 1U )
279+
#define pdTRUE_SIGNED pdTRUE
280+
#endif /* pdTRUE_SIGNED */
281+
282+
#ifndef pdFALSE_SIGNED
283+
#define pdFALSE_SIGNED pdFALSE
284+
#endif /* pdFALSE_SIGNED */
285+
286+
#ifndef pdTRUE_UNSIGNED
287+
#define pdTRUE_UNSIGNED ( 1U )
288+
#endif /* pdTRUE_UNSIGNED */
289+
290+
#ifndef pdFALSE_UNSIGNED
283291
#define pdFALSE_UNSIGNED ( 0U )
284-
#define ipTRUE_BOOL ( 1 == 1 )
285-
#define ipFALSE_BOOL ( 1 == 2 )
286-
#endif
292+
#endif /* pdFALSE_UNSIGNED */
293+
294+
#ifndef ipTRUE_BOOL
295+
#define ipTRUE_BOOL ( 1 == 1 )
296+
#endif /* ipTRUE_BOOL */
297+
298+
#ifndef ipFALSE_BOOL
299+
#define ipFALSE_BOOL ( 1 == 2 )
300+
#endif /* ipFALSE_BOOL */
287301

288302
/*
289303
* FULL, UP-TO-DATE AND MAINTAINED REFERENCE DOCUMENTATION FOR ALL THESE

0 commit comments

Comments
 (0)