URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
[/] [neorv32/] [trunk/] [sw/] [lib/] [source/] [neorv32_mtime.c] - Diff between revs 4 and 11
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 4 |
Rev 11 |
Line 60... |
Line 60... |
}
|
}
|
}
|
}
|
|
|
|
|
/**********************************************************************//**
|
/**********************************************************************//**
|
* Get current system time since reset.
|
* Set current system time.
|
|
*
|
|
* @note The MTIME timer increments with the primary processor clock.
|
|
*
|
|
* @param[in] time New system time (uint64_t)
|
|
**************************************************************************/
|
|
void neorv32_mtime_set_time(uint64_t time) {
|
|
|
|
MTIME = time;
|
|
}
|
|
|
|
|
|
/**********************************************************************//**
|
|
* Get current system time.
|
*
|
*
|
* @note The MTIME timer increments with the primary processor clock.
|
* @note The MTIME timer increments with the primary processor clock.
|
*
|
*
|
* @return Current system time (uint64_t)
|
* @return Current system time (uint64_t)
|
**************************************************************************/
|
**************************************************************************/
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.