MCHTMR driver APIs. More...
Functions | |
| static uint64_t | mchtmr_get_count (MCHTMR_Type *ptr) |
| mchtmr get counter value More... | |
| static void | mchtmr_set_compare_value (MCHTMR_Type *ptr, uint64_t target) |
| mchtmr set comparator value More... | |
| static void | mchtmr_delay (MCHTMR_Type *ptr, uint64_t delay) |
| mchtmr set delay value More... | |
| void | mchtmr_init_counter (MCHTMR_Type *ptr, uint64_t v) |
| initialize mchtmr counter More... | |
MCHTMR driver APIs.
|
inlinestatic |
#include <drivers/inc/hpm_mchtmr_drv.h>
mchtmr set delay value
| [in] | ptr | MCHTMR base address |
| [in] | delay | delay cycles |
|
inlinestatic |
#include <drivers/inc/hpm_mchtmr_drv.h>
mchtmr get counter value
| [in] | ptr | MCHTMR base address |
| void mchtmr_init_counter | ( | MCHTMR_Type * | ptr, |
| uint64_t | v | ||
| ) |
#include <drivers/inc/hpm_mchtmr_drv.h>
initialize mchtmr counter
| [in] | ptr | MCHTMR base address |
| [in] | v | value to be set |
|
inlinestatic |
#include <drivers/inc/hpm_mchtmr_drv.h>
mchtmr set comparator value
| [in] | ptr | MCHTMR base address |
| [in] | target | comparator target value |