18#if (TRC_USE_TRACEALYZER_RECORDER == 1)
35typedef struct TraceISRCoreData
37 TraceISRHandle_t handleStack[TRC_CFG_MAX_ISR_NESTING];
39 uint32_t isPendingContextSwitch;
45typedef struct TraceISRData
47 TraceISRCoreData_t cores[TRC_CFG_CORE_COUNT];
51extern TraceISRData_t* pxTraceISRData;
62traceResult xTraceISRInitialize(TraceISRData_t *pxBuffer);
91traceResult
xTraceISRRegister(
const char* szName, uint32_t uiPriority, TraceISRHandle_t* pxISRHandle);
121traceResult
xTraceISREnd(TraceBaseType_t xIsTaskSwitchRequired);
123#if ((TRC_CFG_USE_TRACE_ASSERT) == 1)
168#define xTraceISRGetCurrentNesting(puiValue) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2(*(puiValue) = pxTraceISRData->cores[TRC_CFG_GET_CURRENT_CORE()].stackIndex, TRC_SUCCESS)
175#define xTraceISRGetCurrentNestingReturned() (pxTraceISRData->cores[TRC_CFG_GET_CURRENT_CORE()].stackIndex)
188#define xTraceISRGetCurrent(pxISRHandle) (xTraceISRGetCurrentNestingReturned() >= 0 ? (*(pxISRHandle) = pxTraceISRData->cores[TRC_CFG_GET_CURRENT_CORE()].handleStack[xTraceISRGetCurrentNestingReturned()], TRC_SUCCESS) : TRC_FAIL)
193TraceISRHandle_t xTraceSetISRProperties(
const char* szName, uint32_t uiPriority);
196#define xTraceGetCurrentISRNesting(puiValue) xTraceISRGetCurrentNesting(puiValue)
199#define vTraceStoreISRBegin(xISRHandle) xTraceISRBegin(xISRHandle)
202#define vTraceStoreISREnd(xIsTaskSwitchRequired) xTraceISREnd(xIsTaskSwitchRequired)
212#define xTraceISRRegister(_szName, _uiPriority, _pxISRHandle) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_4((void)(_szName), (void)(_uiPriority), (void)(_pxISRHandle), TRC_SUCCESS)
214#define xTraceISRBegin(_xISRHandle) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2((void)(_xISRHandle), TRC_SUCCESS)
216#define xTraceISREnd(_xIsTaskSwitchRequired) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2((void)(_xIsTaskSwitchRequired), TRC_SUCCESS)
218#define xTraceISRGetCurrentNesting(_puiValue) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2((void)(_puiValue), 0)
220#define xTraceISRGetCurrentNestingReturned() (1)
222#define xTraceISRGetCurrent(_pxISRHandle) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_2((void)(_pxISRHandle), TRC_SUCCESS)
225#define xTraceSetISRProperties(_szName, _uiPriority) TRC_COMMA_EXPR_TO_STATEMENT_EXPR_3((void)(_szName), (void)(_uiPriority), TRC_SUCCESS)
228#define xTraceGetCurrentISRNesting(_puiValue) xTraceISRGetCurrentNesting(_puiValue)
231#define vTraceStoreISRBegin(_xISRHandle) xTraceISRBegin(_xISRHandle)
234#define vTraceStoreISREnd(_xIsTaskSwitchRequired) xTraceISREnd(_xIsTaskSwitchRequired)
#define xTraceISRGetCurrentNesting(puiValue)
Gets current trace ISR nesting level.
Definition trcISR.h:168
traceResult xTraceISRRegister(const char *szName, uint32_t uiPriority, TraceISRHandle_t *pxISRHandle)
Registers trace ISR.
Definition trcISR.c:70
traceResult xTraceISREnd(TraceBaseType_t xIsTaskSwitchRequired)
Registers the end of an Interrupt Service Routine.
Definition trcCTI.c:1211
traceResult xTraceISRBegin(TraceISRHandle_t xISRHandle)
Registers the beginning of an Interrupt Service Routine.
Definition trcISR.c:117
#define xTraceISRGetCurrent(pxISRHandle)
Gets current trace ISR nesting level.
Definition trcISR.h:188
#define xTraceISRGetCurrentNestingReturned()
Definition trcISR.h:175