18#ifndef neorv32_mtime_h
19#define neorv32_mtime_h
29typedef volatile struct __attribute__((packed,aligned(4))) {
37#define NEORV32_MTIME ((neorv32_mtime_t*) (NEORV32_MTIME_BASE))
void neorv32_mtime_set_unixtime(uint64_t unixtime)
Definition neorv32_mtime.c:127
void neorv32_mtime_set_time(uint64_t time)
Definition neorv32_mtime.c:44
uint64_t neorv32_mtime_get_unixtime(void)
Definition neorv32_mtime.c:138
void neorv32_mtime_set_timecmp(uint64_t timecmp)
Definition neorv32_mtime.c:93
int neorv32_mtime_available(void)
Definition neorv32_mtime.c:26
uint64_t neorv32_mtime_get_timecmp(void)
Definition neorv32_mtime.c:111
uint64_t neorv32_mtime_get_time(void)
Definition neorv32_mtime.c:64
Definition neorv32_mtime.h:29
uint32_t TIME_HI
Definition neorv32_mtime.h:31
uint32_t TIMECMP_LO
Definition neorv32_mtime.h:32
uint32_t TIME_LO
Definition neorv32_mtime.h:30
uint32_t TIMECMP_HI
Definition neorv32_mtime.h:33