RTEMS 6.3
Loading...
Searching...
No Matches

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)
#define Clock_driver_support_initialize_hardware()
#define Clock_driver_support_install_isr(isr)

Functions

uint32_t _CPU_Counter_frequency (void)
CPU_Counter_ticks _CPU_Counter_read (void)
 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.

Macro Definition Documentation

◆ Clock_driver_support_at_tick

#define Clock_driver_support_at_tick ( arg)
Value:
riscv_clock_at_tick(arg)

◆ Clock_driver_support_initialize_hardware

#define Clock_driver_support_initialize_hardware ( void)
Value:
riscv_clock_initialize()

◆ Clock_driver_support_install_isr

#define Clock_driver_support_install_isr ( isr)
Value:
riscv_clock_handler_install(isr)