RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Data Structures | Macros | Functions | Variables

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
 

Macros

#define Clock_driver_support_at_tick(arg)   riscv_clock_at_tick(arg)
 
#define Clock_driver_support_initialize_hardware()   riscv_clock_initialize()
 
#define Clock_driver_support_install_isr(isr)    riscv_clock_handler_install(isr)
 

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
 

Detailed Description

This source file contains the implementation of the riscv Clock Driver.