RTEMS 6.1-rc5
|
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(arg) 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. | |
Variables | |
int | CLOCK_SPEED |
SPARC_COUNTER_DEFINITION | |
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.
#define Clock_driver_support_install_isr | ( | _new | ) |