RTEMS  5.0.0
Data Structures | Macros | Functions | Variables
clockdrv.c File Reference

riscv clock support. 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/riscv-utility.h>
#include <libfdt.h>
#include "../../../shared/dev/clock/clockimpl.h"

Data Structures

struct  riscv_timecounter
 

Macros

#define Clock_driver_support_at_tick()   riscv_clock_at_tick(&riscv_clock_tc)
 
#define Clock_driver_support_initialize_hardware()   riscv_clock_initialize()
 
#define Clock_driver_support_install_isr(isr)   riscv_clock_handler_install()
 
#define CLOCK_DRIVER_USE_ONLY_BOOT_PROCESSOR
 

Functions

void Clock_isr (void *arg)
 
uint32_t _CPU_Counter_frequency (void)
 Returns the current CPU counter frequency in Hz. More...
 
CPU_Counter_ticks _CPU_Counter_read (void)
 Returns the current CPU counter value. More...
 
 RTEMS_SYSINIT_ITEM (riscv_counter_initialize, RTEMS_SYSINIT_CPU_COUNTER, RTEMS_SYSINIT_ORDER_FIRST)
 

Variables

volatile uint32_t _RISCV_Counter_register
 

Detailed Description

riscv clock support.