FreeRTOS port on GAP8/RISC-V
|
Macros | |
#define | CSR_PCMR_DISABLE |
#define | CSR_PCMR_ENABLE |
#define | CSR_PCMR_SATURATE |
#define | PCMR_ACTIVE |
#define | PERF_TIMER_FC |
#define | PERF_TIMER_CL |
Functions | |
static void | __pi_perf_enable_timer (timer_e timer) |
static void | __pi_perf_save (perf_t *perf, timer_e timer) |
void | __pi_perf_fc_conf (uint32_t events) |
Configure FC perf counter. More... | |
void | __pi_perf_fc_reset () |
Reset FC perf counters. More... | |
void | __pi_perf_fc_start () |
Start FC perf counters. More... | |
void | __pi_perf_fc_stop () |
Stop FC perf counters. More... | |
uint32_t | __pi_perf_fc_read (int id) |
Read FC perf counters value. More... | |
Variables | |
static perf_t | fc_perf_val |
#define CSR_PCMR_DISABLE |
Referenced by __pi_perf_fc_stop().
#define CSR_PCMR_ENABLE |
Referenced by __pi_perf_fc_start().
#define CSR_PCMR_SATURATE |
Referenced by __pi_perf_fc_start().
#define PCMR_ACTIVE |
#define PERF_TIMER_CL |
#define PERF_TIMER_FC |
Referenced by __pi_perf_fc_read(), __pi_perf_fc_reset(), __pi_perf_fc_start(), and __pi_perf_fc_stop().
|
static |
References timer_cfg_u::clk_source, timer_cfg_u::enable, timer_cfg_u::field, timer_cfg_u::irq_en, timer_cfg_u::mode, timer_cfg_u::one_shot, pi_timer_init(), timer_cfg_u::presc_en, and timer_cfg_u::reset.
Referenced by __pi_perf_fc_start().
void __pi_perf_fc_conf | ( | uint32_t | events | ) |
This function configures Performance Counter with given events mask.
events | Events mask. |
Referenced by pi_perf_conf().
uint32_t __pi_perf_fc_read | ( | int | id | ) |
This function returns Performance Counter for a given event.
id | ID of the event. |
Referenced by pi_perf_fc_read(), and pi_perf_read().
void __pi_perf_fc_reset | ( | ) |
This function resets all Performance Counter.
Referenced by pi_perf_fc_reset(), and pi_perf_reset().
void __pi_perf_fc_start | ( | ) |
This function starts Performance Counter.
Referenced by pi_perf_fc_start(), and pi_perf_start().
void __pi_perf_fc_stop | ( | ) |
This function stops Performance Counter.
Referenced by pi_perf_stop().
References __FL1, __pi_perf_counter_get(), perf_t::perf_counter, perf_t::perf_mask, and pi_timer_value_read().
Referenced by __pi_perf_fc_read(), and __pi_perf_fc_stop().
|
static |