RTEMS 6.1-rc5
|
This source file contains the implementation of the riscv Clock Driver. More...
#include <bsp/fatal.h>
#include <bsp/fdt.h>
#include <bsp/irq.h>
#include <bsp/riscv.h>
#include <rtems/sysinit.h>
#include <rtems/timecounter.h>
#include <rtems/score/cpuimpl.h>
#include <rtems/score/percpu.h>
#include <rtems/score/riscv-utility.h>
#include <rtems/score/smpimpl.h>
#include <libfdt.h>
#include "../../../shared/dev/clock/clockimpl.h"
Data Structures | |
struct | riscv_timecounter |
Functions | |
uint32_t | _CPU_Counter_frequency (void) |
Gets the current CPU counter frequency in Hz. | |
CPU_Counter_ticks | _CPU_Counter_read (void) |
Gets the current CPU counter value. | |
RTEMS_SYSINIT_ITEM (riscv_counter_initialize, RTEMS_SYSINIT_CPU_COUNTER, RTEMS_SYSINIT_ORDER_FIRST) | |
Variables | |
volatile uint32_t | _RISCV_Counter_register |
This source file contains the implementation of the riscv Clock Driver.