RTEMS 6.1-rc1
Macros | Functions | Variables
ckinit.c File Reference

Clock Tick Device Driver. More...

#include <bsp.h>
#include <bspopts.h>
#include <rtems/sysinit.h>
#include <rtems/timecounter.h>
#include <bsp/sparc-counter.h>
#include "../../../shared/dev/clock/clockimpl.h"

Macros

#define LEON2_TIMER_1_FREQUENCY   1000000
 
#define Clock_driver_support_install_isr(_new)
 
#define Clock_driver_support_at_tick()   leon2_clock_at_tick()
 
#define Clock_driver_support_initialize_hardware()   leon2_clock_init()
 

Functions

 RTEMS_SYSINIT_ITEM (leon2_clock_initialize_early, RTEMS_SYSINIT_CPU_COUNTER, RTEMS_SYSINIT_ORDER_FIRST)
 
uint32_t _CPU_Counter_frequency (void)
 Gets the current CPU counter frequency in Hz. More...
 

Variables

int CLOCK_SPEED
 
 SPARC_COUNTER_DEFINITION
 

Detailed Description

Clock Tick Device Driver.

This routine initializes LEON timer 1 which used for the clock tick.

The tick frequency is directly programmed to the configured number of microseconds per tick.

Macro Definition Documentation

◆ Clock_driver_support_install_isr

#define Clock_driver_support_install_isr (   _new)
Value:
LEON_INTERRUPT_TIMER1, \
"Clock", \
_new, \
NULL \
)
rtems_status_code rtems_interrupt_handler_install(rtems_vector_number vector, const char *info, rtems_option options, rtems_interrupt_handler routine, void *arg)
Installs the interrupt handler routine and argument at the interrupt vector.
Definition: irq-handler-install.c:85
#define RTEMS_INTERRUPT_SHARED
This interrupt handler install option allows that the interrupt handler may share the interrupt vecto...
Definition: intr.h:895
#define NULL
Requests a GPIO pin group configuration.
Definition: xil_types.h:54