![]() |
RTEMS 5.2
|
Clock Tick Device Driver. More...
#include <bsp.h>#include <bspopts.h>#include <rtems/sysinit.h>#include <rtems/timecounter.h>#include <rtems/score/sparcimpl.h>#include "../../../shared/dev/clock/clockimpl.h"Macros | |
| #define | LEON2_TIMER_1_FREQUENCY 1000000 |
| #define | CLOCK_VECTOR LEON_TRAP_TYPE( LEON_INTERRUPT_TIMER1 ) |
| #define | Clock_driver_support_install_isr(_new) set_vector( _new, CLOCK_VECTOR, 1 ) |
| #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) |
| Returns the current CPU counter frequency in Hz. More... | |
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.