17 #ifndef ADI_CYCLECOUNT_H 18 #define ADI_CYCLECOUNT_H 22 #include <adi_cycle_counting_config.h> 45 #define ADI_CYCLECOUNT_SYSTICKS (0xFFFFFFu) 52 #define ADI_CYCLECOUNT_INITIAL_STACK_INDEX (-1) 74 #define ADI_CYCLECOUNT_ISR_EXT_3 1u 75 #define ADI_CYCLECOUNT_ISR_UART 2u 76 #define ADI_CYCLECOUNT_ISR_DMA_UART_TX 3u 77 #define ADI_CYCLECOUNT_ISR_DMA_UART_RX 4u 78 #define ADI_CYCLECOUNT_ISR_TMR_COMMON 5u 79 #define ADI_CYCLECOUNT_ISR_RTC 6u 80 #define ADI_CYCLECOUNT_ISR_SPI 7u 81 #define ADI_CYCLECOUNT_ISR_CRC 8u 82 #define ADI_CYCLECOUNT_ISR_SPORT 9u 83 #define ADI_CYCLECOUNT_ID_COUNT 10u 111 #if defined(ADI_CYCLECOUNT_ENABLED) && (ADI_CYCLECOUNT_ENABLED == 1u) 113 #define ADI_CYCLECOUNT_INITIALIZE() adi_cyclecount_init() 114 #define ADI_CYCLECOUNT_STORE(id) adi_cyclecount_store(id) 115 #define ADI_CYCLECOUNT_REPORT() adi_cyclecount_report() 119 #define ADI_CYCLECOUNT_INITIALIZE() do{}while(0) 120 #define ADI_CYCLECOUNT_STORE(id) do{}while(0) 121 #define ADI_CYCLECOUNT_REPORT() do{}while(0)
ADI_CYCLECOUNT_RESULT adi_cyclecount_store(uint32_t id)
Store Cycle Count.
adi_cyclecount_t average_cycles_unadjusted
void adi_cyclecount_report(void)
Generate a cycle count report.
uint64_t adi_cyclecount_t
void SysTick_Handler(void)
adi_cyclecount_t average_cycles_adjusted
adi_cyclecount_t adi_cyclecount_get(void)
Read the current number of cycle counts.
ADI_CYCLECOUNT_RESULT adi_cyclecount_start(void)
API to be called to start a new cycle counting context.
adi_cyclecount_t max_cycles_adjusted
ADI_CYCLECOUNT_RESULT adi_cyclecount_addEntity(const char *EntityName, uint32_t *pid)
Add an ISR/API to the cycle counting list.
adi_cyclecount_t max_cycles_unadjusted
ADI_CYCLECOUNT_RESULT adi_cyclecount_stop(void)
Cycle Count Stop.
void adi_cyclecount_init(void)
API to be called to initialize the cycle counting framework.
adi_cyclecount_t min_cycles_adjusted
adi_cyclecount_t min_cycles_unadjusted