add function to get ticks instead of time

This commit is contained in:
2020-02-23 20:25:20 -05:00
parent a5995cd4aa
commit 94fe326afb
2 changed files with 6 additions and 0 deletions

View File

@@ -24,6 +24,11 @@ static inline unsigned long long get_time()
return ((BOOTROM_FUNC_ULL) ADDR_GET_TIME)();
}
static inline unsigned long long get_ticks()
{
return ((BOOTROM_FUNC_ULL) ADDR_GET_TICKS)();
}
static inline void timer_register_int(unsigned long long dl)
{
((BOOTROM_FUNC_V) ADDR_TIMER_REGISTER_INT)(dl, ADDR_RANDOM_RET);