XCORE SDK
XCORE Software Development Kit
xcore_trace.h
1 // Copyright 2020-2021 XMOS LIMITED.
2 // This Software is subject to the terms of the XMOS Public Licence: Version 1.
3 
4 #ifndef XCORE_TRACE_H_
5 #define XCORE_TRACE_H_
6 
7 #if ENABLE_RTOS_XSCOPE_TRACE == 1
8 
9 #include "FreeRTOSConfig.h"
10 #if configUSE_TRACE_FACILITY == 0
11 #error configUSE_TRACE_FACILITY must be enabled to trace
12 #endif
13 
14 #include <xscope.h>
15 
16 /* Set defaults config values */
17 #ifndef xcoretraceconfigXSCOPE_TRACE_BUFFER
18 #define xcoretraceconfigXSCOPE_TRACE_BUFFER 200
19 #endif
20 
21 #ifndef xcoretraceconfigXSCOPE_TRACE_RAW_BYTES
22 #define xcoretraceconfigXSCOPE_TRACE_RAW_BYTES 0
23 #endif
24 
25 #if( !( __XC__ ) )
26 #include "ascii_trace.h"
27 #endif /* __XC__ */
28 
29 #endif /* ENABLE_RTOS_XSCOPE_TRACE */
30 
31 #endif /* XCORE_TRACE_H_ */