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

This source file contains a Clock Driver implementation using the Xilinx Triple Timer Counter (TTC). More...

#include <bsp.h>
#include <bsp/irq-generic.h>
#include <bsp/fatal.h>
#include <dev/clock/xttcps_hw.h>
#include <rtems/sysinit.h>
#include <rtems/timecounter.h>
#include <rtems/score/processormaskimpl.h>
#include "../../../shared/dev/clock/clockimpl.h"

Data Structures

struct  xil_ttc_timecounter
 

Macros

#define Clock_driver_support_at_tick(arg)    xil_ttc_clock_driver_support_at_tick(arg)
 
#define Clock_driver_support_initialize_hardware    xil_ttc_clock_driver_support_initialize_hardware
 
#define Clock_driver_support_install_isr(isr)    xil_ttc_clock_driver_support_install_isr(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 (xil_ttc_initialize, RTEMS_SYSINIT_CPU_COUNTER, RTEMS_SYSINIT_ORDER_MIDDLE)
 

Detailed Description

This source file contains a Clock Driver implementation using the Xilinx Triple Timer Counter (TTC).