#include "hpm_soc.h"#include "hpm_clock_drv.h"#include "hpm_mchtmr_drv.h"#include "monitor_ticktime.h"Macros | |
| #define | HPMICRO_MCHTMR_FREQ 24000000 |
| #define | TIME_I2MS(interval) ((interval) / (mchtmr_freq / 1000)) |
| #define | TIME_I2US(interval) ((interval) / (mchtmr_freq / 1000000)) |
Functions | |
| void | tick_time_init (void) |
| void | tick_time_clear (void) |
| void | tick_time_restore (void) |
| void | tick_time_save (void) |
| uint16_t | tick_time_read (void) |
| uint32_t | tick_time_read32 (void) |
| uint16_t | tick_time_us_read (void) |
| uint32_t | tick_time_us_read32 (void) |
| uint32_t | tick_time_ms_read32 (void) |
Variables | |
| static uint64_t | ticks_offset = 0 |
| static uint32_t | saved_ms = 0 |
| static uint32_t | mchtmr_freq = 24000000 |
| #define HPMICRO_MCHTMR_FREQ 24000000 |
| #define TIME_I2MS | ( | interval | ) | ((interval) / (mchtmr_freq / 1000)) |
| #define TIME_I2US | ( | interval | ) | ((interval) / (mchtmr_freq / 1000000)) |
| void tick_time_clear | ( | void | ) |
| void tick_time_init | ( | void | ) |
| uint32_t tick_time_ms_read32 | ( | void | ) |
| uint16_t tick_time_read | ( | void | ) |
| uint32_t tick_time_read32 | ( | void | ) |
| void tick_time_restore | ( | void | ) |
| void tick_time_save | ( | void | ) |
| uint16_t tick_time_us_read | ( | void | ) |
| uint32_t tick_time_us_read32 | ( | void | ) |
|
static |
|
static |
|
static |