NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
|
Hardware Local Interruptor (CLINT) HW driver source file. More...
#include <neorv32.h>
Functions | |
int | neorv32_clint_available (void) |
void | neorv32_clint_msi_set (int hart) |
void | neorv32_clint_msi_clr (int hart) |
uint32_t | neorv32_clint_msi_get (int hart) |
void | neorv32_clint_time_set (uint64_t time) |
uint64_t | neorv32_clint_time_get (void) |
void | neorv32_clint_mtimecmp_set (uint64_t timecmp) |
uint64_t | neorv32_clint_mtimecmp_get (void) |
void | neorv32_clint_unixtime_set (uint64_t unixtime) |
uint64_t | neorv32_clint_unixtime_get (void) |
Hardware Local Interruptor (CLINT) HW driver source file.
int neorv32_clint_available | ( | void | ) |
Check if CLINT module was synthesized.
void neorv32_clint_msi_clr | ( | int | hart | ) |
Clear machine software interrupt.
[in] | hart | Hart index (0..4095). |
uint32_t neorv32_clint_msi_get | ( | int | hart | ) |
Get machine software interrupt register.
[in] | hart | Hart index (0..4095). |
void neorv32_clint_msi_set | ( | int | hart | ) |
Trigger machine software interrupt.
[in] | hart | Hart index (0..4095). |
uint64_t neorv32_clint_mtimecmp_get | ( | void | ) |
Get MTIMER compare time register (MTIMECMP).
void neorv32_clint_mtimecmp_set | ( | uint64_t | timecmp | ) |
Set MTIMER compare time register (MTIMECMP) for generating interrupts.
[in] | timecmp | System time for interrupt (uint64_t). |
uint64_t neorv32_clint_time_get | ( | void | ) |
Get current system time.
void neorv32_clint_time_set | ( | uint64_t | time | ) |
Set current CLINT system time.
[in] | time | New system time (uint64_t). |
uint64_t neorv32_clint_unixtime_get | ( | void | ) |
Get Unix time from MTIMER.
void neorv32_clint_unixtime_set | ( | uint64_t | unixtime | ) |
Set MTIMER to Unix time.
[in] | unixtime | Unix time since 00:00:00 UTC, January 1st, 1970 in seconds. |