mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-26 23:36:32 -04:00
Add separate compile option for tracing functionality in Posix demo (#1194)
* Add compile option for enabling tracing in cmake file *
This commit is contained in:
parent
000c005cee
commit
7de1b5098d
4 changed files with 36 additions and 24 deletions
|
|
@ -128,6 +128,10 @@ extern void vAssertCalled( const char * const pcFileName,
|
|||
#error projCOVERAGE_TEST should be defined to 1 or 0 on the command line.
|
||||
#endif
|
||||
|
||||
#ifndef projENABLE_TRACING
|
||||
#error projENABLE_TRACING should be defined to 1 or 0 on the command line.
|
||||
#endif
|
||||
|
||||
#if ( projCOVERAGE_TEST == 1 )
|
||||
|
||||
/* Insert NOPs in empty decision paths to ensure both true and false paths
|
||||
|
|
@ -154,7 +158,9 @@ extern void vAssertCalled( const char * const pcFileName,
|
|||
#define configUSE_MALLOC_FAILED_HOOK 1
|
||||
|
||||
/* Include the FreeRTOS+Trace FreeRTOS trace macro definitions. */
|
||||
#include "trcRecorder.h"
|
||||
#if( projENABLE_TRACING == 1 )
|
||||
#include "trcRecorder.h"
|
||||
#endif /* if ( projENABLE_TRACING == 1 ) */
|
||||
#endif /* if ( projCOVERAGE_TEST == 1 ) */
|
||||
|
||||
/* networking definitions */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue