ProfilerDriver_Nrf5x.cpp File Reference
#include <nrf_delay.h>
#include <nrf_timer.h>
#include <nrf_gpio.h>
#include "SysprogsProfiler.h"
#include "SysprogsProfilerInterface.h"

Macros

#define PROFILER_TIMER_INSTANCE   2
 
#define CONCAT2_INNER(a, b)   a ## b
 
#define CONCAT3_INNER(a, b, c)   a ## b ## c
 
#define CONCAT2(a, b)   CONCAT2_INNER(a,b)
 
#define CONCAT3(a, b, c)   CONCAT3_INNER(a,b,c)
 

Functions

void SysprogsProfiler_DoHandleTimerIRQ (void *PC, void *SP, void *FP, void *LR)
 
void __attribute__ ((naked)) CONCAT3(TIMER
 
void _IRQHandler ()
 
void InitializeSamplingProfiler ()
 Should be called from your main() function after initializing the system clock. More...
 
unsigned SysprogsInstrumentingProfiler_QueryAndResetPerformanceCounter ()
 Returns the amount of profiler clock ticks passed since the last call to this function. More...
 

Variables

volatile int g_SamplingProfilerRate = 100
 
volatile int g_EnableSamplingProfiler = 0
 
void PROFILER_TIMER_INSTANCE
 

Macro Definition Documentation

#define CONCAT2 (   a,
 
)    CONCAT2_INNER(a,b)
#define CONCAT2_INNER (   a,
 
)    a ## b
#define CONCAT3 (   a,
  b,
 
)    CONCAT3_INNER(a,b,c)
#define CONCAT3_INNER (   a,
  b,
 
)    a ## b ## c
#define PROFILER_TIMER_INSTANCE   2

Function Documentation

void __attribute__ ( (naked)  )
void _IRQHandler ( )
void InitializeSamplingProfiler ( )

Should be called from your main() function after initializing the system clock.

Remarks
If this function is not implemented, you are missing a profiler driver for your platform. See the STM32 driver for an implementation example.
unsigned SysprogsInstrumentingProfiler_QueryAndResetPerformanceCounter ( )

Returns the amount of profiler clock ticks passed since the last call to this function.

void SysprogsProfiler_DoHandleTimerIRQ ( void *  PC,
void *  SP,
void *  FP,
void *  LR 
)

Variable Documentation

volatile int g_EnableSamplingProfiler = 0
volatile int g_SamplingProfilerRate = 100
void PROFILER_TIMER_INSTANCE