CSR driver APIs. More...
Functions | |
| static void | hpm_csr_enable_access_to_csr_cycle (void) |
| Enable access to CSR_CYCLE and CSR_MCYCLEH. More... | |
| static void | hpm_csr_disable_access_to_csr_cycle (void) |
| Disable access to CSR_CYCLE and CSR_MCYCLEH. More... | |
| static uint64_t | hpm_csr_get_core_cycle (void) |
| Get the core cycle value. More... | |
| static uint64_t | hpm_csr_get_core_mcycle (void) |
| Get the core mcycle value. More... | |
CSR driver APIs.
|
inlinestatic |
#include <drivers/inc/hpm_csr_drv.h>
Disable access to CSR_CYCLE and CSR_MCYCLEH.
|
inlinestatic |
#include <drivers/inc/hpm_csr_drv.h>
Enable access to CSR_CYCLE and CSR_MCYCLEH.
|
inlinestatic |
#include <drivers/inc/hpm_csr_drv.h>
Get the core cycle value.
|
inlinestatic |
#include <drivers/inc/hpm_csr_drv.h>
Get the core mcycle value.