Commit 1751b72a authored by Johannes Wiesboeck's avatar Johannes Wiesboeck Committed by Oliver Horst
Browse files

[chg] Make stm macros 'header-only'.

parent 277961fa
......@@ -2,6 +2,7 @@
#define FREERTOSPLUS_CORESIGHT_STM_TRACE_H
#include "xil/xil_io.h"
#include "xil/csparameters.h"
#if !defined (__aarch64__)
#error "Unsupported Processor Type"
......@@ -19,10 +20,10 @@
*
* A possible use of these macros could look like this: STM_TRACE_8(0, G_DMTS, 42);
*/
#define STM_TRACE_8(port, type, data) Xil_Out8( &xSTMTraceDrvData.axi->ports[port].type, data )
#define STM_TRACE_16(port, type, data) Xil_Out16( &xSTMTraceDrvData.axi->ports[port].type, data )
#define STM_TRACE_32(port, type, data) Xil_Out32( &xSTMTraceDrvData.axi->ports[port].type, data )
#define STM_TRACE_64(port, type, data) Xil_Out64( &xSTMTraceDrvData.axi->ports[port].type, data )
#define STM_TRACE_8(port, type, data) Xil_Out8( &((stm_axi_t *)( CS_STM_AXI_BASE ))->ports[port].type, data )
#define STM_TRACE_16(port, type, data) Xil_Out16( &((stm_axi_t *)( CS_STM_AXI_BASE ))->ports[port].type, data )
#define STM_TRACE_32(port, type, data) Xil_Out32( &((stm_axi_t *)( CS_STM_AXI_BASE ))->ports[port].type, data )
#define STM_TRACE_64(port, type, data) Xil_Out64( &((stm_axi_t *)( CS_STM_AXI_BASE ))->ports[port].type, data )
/*******************************************************************************
......
......@@ -22,7 +22,6 @@
#include "freertos+/coresight/stm_trace.h"
#include "xil/xil_io.h"
#include "xil/csparameters.h"
#include <stdio.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment