![]() |
NEORV32 - Software Framework Documentation
|
Machine System Timer (MTIME) HW driver source file. More...
Functions | |
int | neorv32_mtime_available (void) |
void | neorv32_mtime_set_time (uint64_t time) |
uint64_t | neorv32_mtime_get_time (void) |
void | neorv32_mtime_set_timecmp (uint64_t timecmp) |
uint64_t | neorv32_mtime_get_timecmp (void) |
Machine System Timer (MTIME) HW driver source file.
int neorv32_mtime_available | ( | void | ) |
Check if MTIME unit was synthesized.
uint64_t neorv32_mtime_get_time | ( | void | ) |
Get current system time.
uint64_t neorv32_mtime_get_timecmp | ( | void | ) |
Get compare time register (MTIMECMP).
void neorv32_mtime_set_time | ( | uint64_t | time | ) |
Set current system time.
[in] | time | New system time (uint64_t) |
void neorv32_mtime_set_timecmp | ( | uint64_t | timecmp | ) |
Set compare time register (MTIMECMP) for generating interrupts.
[in] | timecmp | System time for interrupt (uint64_t) |