mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-08-06 09:39:44 +08:00
Force a branch in the definition of configASSERT in the default CMock FreeRTOSConfig.h file (#538)
* Force a branch in the definition of configASSERT in the default CMock FreeRTOSConfig.h file * Run uncrustify on FreeRTOSConfig.h
This commit is contained in:
@ -88,14 +88,14 @@ void vConfigureTimerForRunTimeStats( void ); /* Prototype of function that initi
|
|||||||
#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
|
#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
|
||||||
|
|
||||||
/* This demo makes use of one or more example stats formatting functions. These
|
/* This demo makes use of one or more example stats formatting functions. These
|
||||||
format the raw data provided by the uxTaskGetSystemState() function in to human
|
* format the raw data provided by the uxTaskGetSystemState() function in to human
|
||||||
readable ASCII form. See the notes in the implementation of vTaskList() within
|
* readable ASCII form. See the notes in the implementation of vTaskList() within
|
||||||
FreeRTOS/Source/tasks.c for limitations. */
|
* FreeRTOS/Source/tasks.c for limitations. */
|
||||||
#define configUSE_STATS_FORMATTING_FUNCTIONS 1
|
#define configUSE_STATS_FORMATTING_FUNCTIONS 1
|
||||||
|
|
||||||
/* Set the following definitions to 1 to include the API function, or zero
|
/* Set the following definitions to 1 to include the API function, or zero
|
||||||
to exclude the API function. In most cases the linker will remove unused
|
* to exclude the API function. In most cases the linker will remove unused
|
||||||
functions anyway. */
|
* functions anyway. */
|
||||||
#define INCLUDE_vTaskPrioritySet 1
|
#define INCLUDE_vTaskPrioritySet 1
|
||||||
#define INCLUDE_uxTaskPriorityGet 1
|
#define INCLUDE_uxTaskPriorityGet 1
|
||||||
#define INCLUDE_vTaskDelete 1
|
#define INCLUDE_vTaskDelete 1
|
||||||
@ -114,9 +114,19 @@ functions anyway. */
|
|||||||
#define INCLUDE_xTaskAbortDelay 1
|
#define INCLUDE_xTaskAbortDelay 1
|
||||||
|
|
||||||
/* It is a good idea to define configASSERT() while developing. configASSERT()
|
/* It is a good idea to define configASSERT() while developing. configASSERT()
|
||||||
uses the same semantics as the standard C assert() macro. */
|
* uses the same semantics as the standard C assert() macro. */
|
||||||
#define configASSERT( x ) \
|
#define configASSERT( x ) \
|
||||||
vFakeAssert( (bool) ( x ), __FILE__, __LINE__)
|
do \
|
||||||
|
{ \
|
||||||
|
if( x ) \
|
||||||
|
{ \
|
||||||
|
vFakeAssert( true, __FILE__, __LINE__ ); \
|
||||||
|
} \
|
||||||
|
else \
|
||||||
|
{ \
|
||||||
|
vFakeAssert( false, __FILE__, __LINE__ ); \
|
||||||
|
} \
|
||||||
|
} while ( 0 );
|
||||||
|
|
||||||
#define mtCOVERAGE_TEST_MARKER() __asm volatile ( "NOP" )
|
#define mtCOVERAGE_TEST_MARKER() __asm volatile ( "NOP" )
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user