static void prvSaveTraceFile()

in Debug_extra/FreeRTOS_demo/main.c [323:346]


static void prvSaveTraceFile( void )
{
	/* Tracing is not used when code coverage analysis is being performed. */
	#if ( projCOVERAGE_TEST != 1 )
	{
	FILE * pxOutputFile;

		vTraceStop();

		pxOutputFile = fopen( "Trace.dump", "wb" );

		if( pxOutputFile != NULL )
		{
			fwrite( RecorderDataPtr, sizeof( RecorderDataType ), 1, pxOutputFile );
			fclose( pxOutputFile );
			printf( "\r\nTrace output saved to Trace.dump\r\n" );
		}
		else
		{
			printf( "\r\nFailed to create trace dump file\r\n" );
		}
	}
	#endif /* if ( projCOVERAGE_TEST != 1 ) */
}