#include "monitor_kconfig.h"#include "monitor_log.h"#include "hpm_gptmr_drv.h"#include "hpm_dma_drv.h"#include "hpm_dmamux_drv.h"#include "monitor_timer.h"Data Structures | |
| struct | monitor_timer_t |
Macros | |
| #define | MONITOR_TIMER_CTX &MONITOR_PRIVATE_VAR_NAME(monitor_timer); |
| #define | MONITOR_GET_GPTMR_SRC(base, i) ((base) == HPM_GPTMR0 ? (HPM_DMA_SRC_GPTMR0_0 + (i)) : ((base) == HPM_GPTMR1 ? (HPM_DMA_SRC_GPTMR1_0 + (i)) : ((base) == HPM_GPTMR2 ? (HPM_DMA_SRC_GPTMR2_0 + (i)) : ((base) == HPM_GPTMR3 ? (HPM_DMA_SRC_GPTMR3_0 + (i)) : 0)))) |
Functions | |
| static monitor_timer_t | MONITOR_PRIVATE_VAR_NAME (monitor_timer) |
| static ATTR_RAMFUNC void | monitor_isr_dma (DMA_Type *dma_base) |
| static uint32_t | monitor_get_dmamux_trgm_src (uint8_t ch) |
| void | monitor_timer_config (uint32_t freq_hz, uint32_t count) |
| void | monitor_timer_stop (void) |
| void | monitor_timer_start (void) |
| int | monitor_sample_dma_config (void) |
| void | monitor_sample_dma_start (void) |
| bool | monitor_timer_sample_is_running (void) |
| int | monitor_timer_sample_data_config (montiro_report_data_t *data, sample_result_cb cb, uint8_t is_loop, bool enable) |
| void | monitor_timer_sample_restart (void) |
| void | monitor_timer_sample_stop (void) |
| void | monitor_timer_sample_destroy (void) |
| void | monitor_timer_init (void) |
| #define MONITOR_GET_GPTMR_SRC | ( | base, | |
| i | |||
| ) | ((base) == HPM_GPTMR0 ? (HPM_DMA_SRC_GPTMR0_0 + (i)) : ((base) == HPM_GPTMR1 ? (HPM_DMA_SRC_GPTMR1_0 + (i)) : ((base) == HPM_GPTMR2 ? (HPM_DMA_SRC_GPTMR2_0 + (i)) : ((base) == HPM_GPTMR3 ? (HPM_DMA_SRC_GPTMR3_0 + (i)) : 0)))) |
| #define MONITOR_TIMER_CTX &MONITOR_PRIVATE_VAR_NAME(monitor_timer); |
|
static |
|
static |
|
static |
| int monitor_sample_dma_config | ( | void | ) |
| void monitor_sample_dma_start | ( | void | ) |
| void monitor_timer_config | ( | uint32_t | freq_hz, |
| uint32_t | count | ||
| ) |
| void monitor_timer_init | ( | void | ) |
| int monitor_timer_sample_data_config | ( | montiro_report_data_t * | data, |
| sample_result_cb | cb, | ||
| uint8_t | is_loop, | ||
| bool | enable | ||
| ) |
| void monitor_timer_sample_destroy | ( | void | ) |
| bool monitor_timer_sample_is_running | ( | void | ) |
| void monitor_timer_sample_restart | ( | void | ) |
| void monitor_timer_sample_stop | ( | void | ) |
| void monitor_timer_start | ( | void | ) |
| void monitor_timer_stop | ( | void | ) |